Lines Matching refs:sal_Int32

146     sal_Int32 nFirstLink = aWriter.CreateLink( aRect );  in doTestCode()
156 sal_Int32 nSecondDest = aWriter.CreateDest( aTargetRect ); in doTestCode()
172 sal_Int32 nLongPara = aWriter.BeginStructureElement( PDFWriter::Paragraph ); in doTestCode()
199 sal_Int32 nSecondLink = aWriter.CreateLink( aRect ); in doTestCode()
205 sal_Int32 nFirstDest = aWriter.CreateDest( aTargetRect ); in doTestCode()
209 sal_Int32 nSaveStruct = aWriter.GetCurrentStructureElement(); in doTestCode()
335 sal_Int32 nPattern = aWriter.EndPattern( SvtGraphicFill::Transform() ); in doTestCode()
350 sal_Int32 nURILink = aWriter.CreateLink( aRect ); in doTestCode()
483 sal_Int32 nPage1OL = aWriter.CreateOutlineItem(); in doTestCode()
489 sal_Int32 nPage2OL = aWriter.CreateOutlineItem(); in doTestCode()
498 static const sal_Int32 nLog10Divisor = 1;
501 static inline double pixelToPoint( sal_Int32 px ) { return double(px)/fDivisor; } in pixelToPoint()
503 static inline sal_Int32 pointToPixel( double pt ) { return sal_Int32(pt*fDivisor); } in pointToPixel()
572 static void appendLiteralString( const sal_Char* pStr, sal_Int32 nLength, OStringBuffer& rBuffer ) in appendLiteralString()
634 sal_Int32 nLen = rString.getLength(); in appendDestinationName()
660 sal_Int32 nLen = rString.getLength(); in appendUnicodeTextString()
669 void PDFWriterImpl::createWidgetFieldName( sal_Int32 i_nWidgetIndex, const PDFWriter::AnyWidget& i_… in createWidgetFieldName()
699 sal_Int32 nTokenIndex = 0, nLastTokenIndex = 0; in createWidgetFieldName()
711 …std::hash_map< rtl::OString, sal_Int32, rtl::OStringHash >::const_iterator it = m_aFieldNameMap.fi… in createWidgetFieldName()
715 sal_Int32 nNewWidget = m_aWidgets.size(); in createWidgetFieldName()
732 … OSL_ENSURE( it->second < sal_Int32(m_aWidgets.size()), "invalid field number entry" ); in createWidgetFieldName()
733 if( it->second < sal_Int32(m_aWidgets.size()) ) in createWidgetFieldName()
772 …std::hash_map< rtl::OString, sal_Int32, rtl::OStringHash >::const_iterator it = m_aFieldNameMap.fi… in createWidgetFieldName()
775 …OSL_ENSURE( it->second >= 0 && it->second < sal_Int32( m_aWidgets.size() ), "invalid field index" … in createWidgetFieldName()
776 if( it->second >= 0 && it->second < sal_Int32(m_aWidgets.size()) ) in createWidgetFieldName()
799 … std::hash_map<OString, sal_Int32, OStringHash>::iterator it = m_aFieldNameMap.find( aFullName ); in createWidgetFieldName()
803 std::hash_map< OString, sal_Int32, OStringHash >::const_iterator check_it; in createWidgetFieldName()
805 sal_Int32 nTry = 2; in createWidgetFieldName()
827 static void appendFixedInt( sal_Int32 nValue, OStringBuffer& rBuffer, sal_Int32 nPrecision = nLog10… in appendFixedInt()
834 sal_Int32 nFactor = 1, nDiv = nPrecision; in appendFixedInt()
838 sal_Int32 nInt = nValue / nFactor; in appendFixedInt()
842 sal_Int32 nDecimal = nValue % nFactor; in appendFixedInt()
856 static void appendDouble( double fValue, OStringBuffer& rBuffer, sal_Int32 nPrecision = 5 ) in appendDouble()
1105 void PDFWriterImpl::ResourceDict::append( OStringBuffer& rBuf, sal_Int32 nFontDictObject ) in append()
1120 PDFWriterImpl::PDFPage::PDFPage( PDFWriterImpl* pWriter, sal_Int32 nPageWidth, sal_Int32 nPageHeigh… in PDFPage()
1205 bool PDFWriterImpl::PDFPage::emit(sal_Int32 nParentObject ) in emit()
1270 aLine.append( sal_Int32(m_pWriter->m_aStructParentTree.size()-1) ); in emit()
1276 aLine.append( (sal_Int32)m_nDuration ); in emit()
1404 sal_Int32 nValue = aPoint.X(); in appendPoint()
1436 appendMappedLength( (sal_Int32)rRect.GetWidth(), rBuffer, false ); in appendRect()
1438 appendMappedLength( (sal_Int32)rRect.GetHeight(), rBuffer, true ); in appendRect()
1594 …FWriterImpl::PDFPage::appendMappedLength( sal_Int32 nLength, OStringBuffer& rBuffer, bool bVertica… in appendMappedLength()
1596 sal_Int32 nValue = nLength; in appendMappedLength()
1613 …th( double fLength, OStringBuffer& rBuffer, bool bVertical, sal_Int32* pOutLength, sal_Int32 nPrec… in appendMappedLength()
1620 … *pOutLength = (sal_Int32)(fLength*(double)(bVertical ? aSize.Height() : aSize.Width())/1000.0); in appendMappedLength()
1654 appendMappedLength( (sal_Int32)rInfo.GetDashLen(), rBuffer ); in appendLineInfo()
1656 appendMappedLength( (sal_Int32)rInfo.GetDistance(), rBuffer ); in appendLineInfo()
1663 appendMappedLength( (sal_Int32)rInfo.GetDashLen(), rBuffer ); in appendLineInfo()
1665 appendMappedLength( (sal_Int32)rInfo.GetDistance(), rBuffer ); in appendLineInfo()
1670 appendMappedLength( (sal_Int32)rInfo.GetDotLen(), rBuffer ); in appendLineInfo()
1672 appendMappedLength( (sal_Int32)rInfo.GetDistance(), rBuffer ); in appendLineInfo()
1681 appendMappedLength( (sal_Int32)rInfo.GetWidth(), rBuffer ); in appendLineInfo()
1694 void PDFWriterImpl::PDFPage::appendWaveLine( sal_Int32 nWidth, sal_Int32 nY, sal_Int32 nDelta, OStr… in appendWaveLine()
1704 for( sal_Int32 n = 0; n < nWidth; ) in appendWaveLine()
2019 …::appendUnicodeTextStringEncrypt( const rtl::OUString& rInString, const sal_Int32 nInObjectNumber,… in appendUnicodeTextStringEncrypt()
2025 sal_Int32 nLen = rInString.getLength(); in appendUnicodeTextStringEncrypt()
2031 sal_Int32 nChars = 2; in appendUnicodeTextStringEncrypt()
2054 …rImpl::appendLiteralStringEncrypt( rtl::OStringBuffer& rInString, const sal_Int32 nInObjectNumber,… in appendLiteralStringEncrypt()
2057 sal_Int32 nChars = rInString.getLength(); in appendLiteralStringEncrypt()
2071 …rImpl::appendLiteralStringEncrypt( const rtl::OString& rInString, const sal_Int32 nInObjectNumber,… in appendLiteralStringEncrypt()
2077 void PDFWriterImpl::appendLiteralStringEncrypt( const rtl::OUString& rInString, const sal_Int32 nIn… in appendLiteralStringEncrypt()
2080 sal_Int32 nLen = aBufferString.getLength(); in appendLiteralStringEncrypt()
2084 for( sal_Int32 i = 0; i < nLen; i++, pT++ ) in appendLiteralStringEncrypt()
2187 if( ( buffOK = checkEncryptionBufferSize( static_cast<sal_Int32>(nBytes) ) ) != sal_False ) in writeBuffer()
2463 sal_Int32 PDFWriterImpl::newPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight, PDFWriter::Orientati… in newPage()
2544 sal_Int32 PDFWriterImpl::createObject() in createObject()
2550 bool PDFWriterImpl::updateObject( sal_Int32 n ) in updateObject()
2569 sal_Int32 PDFWriterImpl::emitStructParentTree( sal_Int32 nObject ) in emitStructParentTree()
2578 sal_Int32 nTreeItems = m_aStructParentTree.size(); in emitStructParentTree()
2579 for( sal_Int32 n = 0; n < nTreeItems; n++ ) in emitStructParentTree()
2712 sal_Int32 nLink = it->second.nValue; in emitStructureAttributes()
2713 std::map< sal_Int32, sal_Int32 >::const_iterator link_it = in emitStructureAttributes()
2717 if( nLink >= 0 && nLink < (sal_Int32)m_aLinks.size() ) in emitStructureAttributes()
2726 sal_Int32 nRefObject = createObject(); in emitStructureAttributes()
2770 std::vector< sal_Int32 > aAttribObjects; in emitStructureAttributes()
2811 for( std::vector< sal_Int32 >::const_iterator at_it = aAttribObjects.begin(); in emitStructureAttributes()
2823 sal_Int32 PDFWriterImpl::emitStructure( PDFStructureElement& rEle ) in emitStructure()
2832 …for( std::list< sal_Int32 >::const_iterator it = rEle.m_aChildren.begin(); it != rEle.m_aChildren.… in emitStructure()
2834 if( *it > 0 && *it < sal_Int32(m_aStructure.size()) ) in emitStructure()
2863 sal_Int32 nParentTree = -1; in emitStructure()
3006 sal_Int32 nX = (sal_Int32)it->m_aRectangle.Left(); in emitTilings()
3007 sal_Int32 nY = (sal_Int32)it->m_aRectangle.Top(); in emitTilings()
3008 sal_Int32 nW = (sal_Int32)it->m_aRectangle.GetWidth(); in emitTilings()
3009 sal_Int32 nH = (sal_Int32)it->m_aRectangle.GetHeight(); in emitTilings()
3068 aTilingObj.append( (sal_Int32)nTilingStreamSize ); in emitTilings()
3086 sal_Int32 PDFWriterImpl::emitBuiltinFont( const ImplFontData* pFont, sal_Int32 nFontObject ) in emitBuiltinFont()
3110 std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const ImplFontData* pFont, EmbedFon… in emitSystemFont()
3112 std::map< sal_Int32, sal_Int32 > aRet; in emitSystemFont()
3119 sal_Int32 nFontObject = 0; in emitSystemFont()
3120 sal_Int32 nFontDescriptor = 0; in emitSystemFont()
3129 sal_Int32 pWidths[256]; in emitSystemFont()
3136 sal_Int32 pEncWidths[256]; in emitSystemFont()
3161 sal_Int32 pDuWidths[ 256 ]; in emitSystemFont()
3190 sal_Int32 nObject = createObject(); in emitSystemFont()
3261 std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFontData* pFont, EmbedF… in emitEmbeddedFont()
3263 std::map< sal_Int32, sal_Int32 > aRet; in emitEmbeddedFont()
3270 sal_Int32 nFontObject = 0; in emitEmbeddedFont()
3271 sal_Int32 nStreamObject = 0; in emitEmbeddedFont()
3272 sal_Int32 nFontDescriptor = 0; in emitEmbeddedFont()
3276 sal_Int32 nToUnicodeStream = 0; in emitEmbeddedFont()
3281 sal_Int32 pUnicodesPerGlyph[256]; in emitEmbeddedFont()
3282 sal_Int32 pEncToUnicodeIndex[256]; in emitEmbeddedFont()
3293 sal_Int32 nCode = (sal_Int32)(it->second & 0x000000ff); in emitEmbeddedFont()
3296 pEncToUnicodeIndex[ nCode ] = static_cast<sal_Int32>(aUnicodes.size()); in emitEmbeddedFont()
3304 sal_Int32 pWidths[256]; in emitEmbeddedFont()
3307 sal_Int32 nLength1, nLength2; in emitEmbeddedFont()
3324 sal_Int32 nBytes = in emitEmbeddedFont()
3325 ((sal_Int32)pFontData[nIndex+2]) | in emitEmbeddedFont()
3326 ((sal_Int32)pFontData[nIndex+3]) << 8 | in emitEmbeddedFont()
3327 ((sal_Int32)pFontData[nIndex+4]) << 16 | in emitEmbeddedFont()
3328 ((sal_Int32)pFontData[nIndex+5]) << 24; in emitEmbeddedFont()
3390 sal_Int32 nLength3 = nFontLen - nIndex; in emitEmbeddedFont()
3495 sal_Int32 nStreamLengthObject = createObject(); in emitEmbeddedFont()
3567sal_Int32 nSectionLen = (it == aSections.end()) ? nFontLen - nIndex : (*it) - nIndex; in emitEmbeddedFont()
3630sal_Int32 nSectionLen = (it == aSections.end()) ? nFontLen - nIndex : (*it) - nIndex; in emitEmbeddedFont()
3672 aErrorComment.append( sal_Int32(pFont->GetWeight()) ); in emitEmbeddedFont()
3686 sal_Int32 nObject = createObject(); in emitEmbeddedFont()
3726 sal_Int32 aEncWidths[ 256 ]; in emitEmbeddedFont()
3728 sal_Int32 nEncObject = createObject(); in emitEmbeddedFont()
3754 pEncToUnicodeIndex[nEncoded] = static_cast<sal_Int32>(aUnicodes.size()); in emitEmbeddedFont()
3794 aLine.append( (sal_Int32)(nEncoded-1) ); in emitEmbeddedFont()
3842 sal_Int32 PDFWriterImpl::createToUnicodeCMap( sal_uInt8* pEncoding, in createToUnicodeCMap()
3844 sal_Int32* pUnicodesPerGlyph, in createToUnicodeCMap()
3845 sal_Int32* pEncToUnicodeIndex, in createToUnicodeCMap()
3856 sal_Int32 nStream = createObject(); in createToUnicodeCMap()
3884 aContents.append( (sal_Int32)((nMapped-nCount > 100) ? 100 : nMapped-nCount ) ); in createToUnicodeCMap()
3891 sal_Int32 nIndex = pEncToUnicodeIndex[n]; in createToUnicodeCMap()
3892 for( sal_Int32 j = 0; j < pUnicodesPerGlyph[n]; j++ ) in createToUnicodeCMap()
3923 sal_Int32 nLen = (sal_Int32)aStream.Tell(); in createToUnicodeCMap()
3946 sal_Int32 PDFWriterImpl::emitFontDescriptor( const ImplFontData* pFont, FontSubsetInfo& rInfo, sal_… in emitFontDescriptor()
3952 sal_Int32 nFontFlags = (1<<2); in emitFontDescriptor()
3962 sal_Int32 nFontDescriptor = createObject(); in emitFontDescriptor()
3975 aLine.append( (sal_Int32)rInfo.m_aFontBBox.TopLeft().X() ); in emitFontDescriptor()
3977 aLine.append( (sal_Int32)rInfo.m_aFontBBox.TopLeft().Y() ); in emitFontDescriptor()
3979 aLine.append( (sal_Int32)rInfo.m_aFontBBox.BottomRight().X() ); in emitFontDescriptor()
3981 aLine.append( (sal_Int32)(rInfo.m_aFontBBox.BottomRight().Y()+1) ); in emitFontDescriptor()
3989 aLine.append( (sal_Int32)rInfo.m_nAscent ); in emitFontDescriptor()
3992 aLine.append( (sal_Int32)-rInfo.m_nDescent ); in emitFontDescriptor()
3995 aLine.append( (sal_Int32)rInfo.m_nCapHeight ); in emitFontDescriptor()
4029 for( std::map< sal_Int32, sal_Int32 >::const_iterator it = in appendBuiltinFontsToDict()
4046 std::map< sal_Int32, sal_Int32 > aFontIDToObject; in emitFonts()
4055 sal_Int32 pWidths[ 256 ]; in emitFonts()
4057 sal_Int32 pEncToUnicodeIndex[ 256 ]; in emitFonts()
4058 sal_Int32 pUnicodesPerGlyph[ 256 ]; in emitFonts()
4063 sal_Int32 nToUnicodeStream = 0; in emitFonts()
4078 pEncToUnicodeIndex[ nEnc ] = static_cast<sal_Int32>(aUnicodes.size()); in emitFonts()
4080 for( sal_Int32 n = 0; n < pUnicodesPerGlyph[ nEnc ]; n++ ) in emitFonts()
4106 sal_Int32 nFontStream = createObject(); in emitFonts()
4107 sal_Int32 nStreamLengthObject = createObject(); in emitFonts()
4113 aLine.append( (sal_Int32)nStreamLengthObject ); in emitFonts()
4123 aLine.append( (sal_Int32)nLength1 ); in emitFonts()
4161 aLine.append( (sal_Int32)aSegmentLengths[0] ); in emitFonts()
4163 aLine.append( (sal_Int32)aSegmentLengths[1] ); in emitFonts()
4165 aLine.append( (sal_Int32)aSegmentLengths[2] ); in emitFonts()
4207sal_Int32 nFontDescriptor = emitFontDescriptor( it->first, aSubsetInfo, lit->m_nFontID, nFontStrea… in emitFonts()
4212 sal_Int32 nFontObject = createObject(); in emitFonts()
4225 aLine.append( (sal_Int32)(nGlyphs-1) ); in emitFonts()
4261 aErrorComment.append( sal_Int32(pFont->GetWeight()) ); in emitFonts()
4271 std::map< sal_Int32, sal_Int32 > aObjects = emitEmbeddedFont( eit->first, eit->second ); in emitFonts()
4272 …for( std::map< sal_Int32, sal_Int32 >::iterator fit = aObjects.begin(); fit != aObjects.end(); ++f… in emitFonts()
4282 std::map< sal_Int32, sal_Int32 > aObjects = emitSystemFont( sit->first, sit->second ); in emitFonts()
4283 …for( std::map< sal_Int32, sal_Int32 >::iterator fit = aObjects.begin(); fit != aObjects.end(); ++f… in emitFonts()
4295 …for( std::map< sal_Int32, sal_Int32 >::iterator mit = aFontIDToObject.begin(); mit != aFontIDToObj… in emitFonts()
4306 for( std::map< sal_Int32, sal_Int32 >::iterator it = m_aBuiltinFontToObjectMap.begin(); in emitFonts()
4320 sal_Int32 PDFWriterImpl::emitResources() in emitResources()
4334 sal_Int32 nResourceDict = getResourceDictObj(); in emitResources()
4345 sal_Int32 PDFWriterImpl::updateOutlineItemCount( std::vector< sal_Int32 >& rCounts, in updateOutlineItemCount()
4346 sal_Int32 nItemLevel, in updateOutlineItemCount()
4347 sal_Int32 nCurrentItemId ) in updateOutlineItemCount()
4356 sal_Int32 nCount = 0; in updateOutlineItemCount()
4363 sal_Int32 nChildren = rItem.m_aChildren.size(); in updateOutlineItemCount()
4364 for( sal_Int32 i = 0; i < nChildren; i++ ) in updateOutlineItemCount()
4376 sal_Int32 nChildren = rItem.m_aChildren.size(); in updateOutlineItemCount()
4377 rCounts[ nCurrentItemId ] = -sal_Int32(rItem.m_aChildren.size()); in updateOutlineItemCount()
4378 for( sal_Int32 i = 0; i < nChildren; i++ ) in updateOutlineItemCount()
4386 sal_Int32 PDFWriterImpl::emitOutline() in emitOutline()
4419 std::vector< sal_Int32 > aCounts( nItems ); in emitOutline()
4454 if( rItem.m_nDestID >= 0 && rItem.m_nDestID < (sal_Int32)m_aDests.size() ) in emitOutline()
4485 bool PDFWriterImpl::appendDest( sal_Int32 nDestID, OStringBuffer& rBuffer ) in appendDest()
4487 if( nDestID < 0 || nDestID >= (sal_Int32)m_aDests.size() ) in appendDest()
4609 sal_Int32 nChangeFileExtensionToPDF = 0; in emitLinkAnnotations()
4610 sal_Int32 nSetGoToRMode = 0; in emitLinkAnnotations()
4851 sal_Int32 PDFWriterImpl::getBestBuiltinFont( const Font& rFont ) in getBestBuiltinFont()
4853 sal_Int32 nBest = 4; // default to Helvetica in getBestBuiltinFont()
4913 sal_Int32 nDummyBuiltin = getBestBuiltinFont( aDummyFont ); in createDefaultPushButtonAppearance()
4917 m_aPages[m_nCurrentPage].appendMappedLength( sal_Int32( aFont.GetHeight() ), aDA ); in createDefaultPushButtonAppearance()
4951 sal_Int32 nDelta = getReferenceDevice()->ImplGetDPIX() / 500; in drawFieldBorder()
4979 sal_Int32 nDelta = aFont.GetHeight()/4; in drawFieldBorder()
5000sal_Int32 nBest = m_aContext.FieldsUseSystemFonts ? getSystemFont( aFont ): getBestBuiltinFont( aF… in createDefaultEditAppearance()
5020 m_aPages[ m_nCurrentPage ].appendMappedLength( sal_Int32( aFont.GetHeight() ), aDA ); in createDefaultEditAppearance()
5052sal_Int32 nBest = m_aContext.FieldsUseSystemFonts ? getSystemFont( aFont ): getBestBuiltinFont( aF… in createDefaultListBoxAppearance()
5065 sal_Int32 nLW = aFontSize.Height() / 40; in createDefaultListBoxAppearance()
5117 m_aPages[ m_nCurrentPage ].appendMappedLength( sal_Int32( aFont.GetHeight() ), aDA ); in createDefaultListBoxAppearance()
5141 sal_Int32 nDelta = aFontSize.Height()/10; in createDefaultCheckBoxAppearance()
5202sal_Int32 nBest = getBestBuiltinFont( Font( String( RTL_CONSTASCII_USTRINGPARAM( "ZapfDingbats" ) … in createDefaultCheckBoxAppearance()
5213 sal_Int32 nCharXOffset = 1000-m_aBuiltinFonts[13].m_aWidths[sal_Int32(cMark)]; in createDefaultCheckBoxAppearance()
5216 sal_Int32 nCharYOffset = 1000- in createDefaultCheckBoxAppearance()
5228 m_aPages[ m_nCurrentPage ].appendMappedLength( sal_Int32( aCheckRect.GetHeight() ), aDA ); in createDefaultCheckBoxAppearance()
5266 sal_Int32 nDelta = aFontSize.Height()/10; in createDefaultRadioButtonAppearance()
5327sal_Int32 nBest = getBestBuiltinFont( Font( String( RTL_CONSTASCII_USTRINGPARAM( "ZapfDingbats" ) … in createDefaultRadioButtonAppearance()
5349 m_aPages[m_nCurrentPage].appendMappedLength( sal_Int32( aCheckRect.GetHeight() ), aDA ); in createDefaultRadioButtonAppearance()
5407 sal_Int32 nObject = createObject(); in emitAppearances()
5522 sal_Int32 nEntry = rWidget.m_aSelectedEntries[i]; in emitWidgetAnnotations()
5523 if( nEntry >= 0 && nEntry < sal_Int32(rWidget.m_aListEntries.size()) ) in emitWidgetAnnotations()
5530 … rWidget.m_aSelectedEntries[0] < sal_Int32(rWidget.m_aListEntries.size()) ) in emitWidgetAnnotations()
5604 sal_Int32 nTI = -1; in emitWidgetAnnotations()
5606 sal_Int32 i = 0; in emitWidgetAnnotations()
5657 sal_Int32 nFlags = 0; in emitWidgetAnnotations()
5758 sal_Int32 nTreeNode = createObject(); in emitCatalog()
5768 sal_Int32 nNamedDestinationsDictionary = emitNamedDestinations(); in emitCatalog()
5770 sal_Int32 nOutlineDict = emitOutline(); in emitCatalog()
5773 sal_Int32 nOutputIntentObject = emitOutputIntent(); in emitCatalog()
5776 sal_Int32 nMetadataObject = emitDocumentMetadata(); in emitCatalog()
5778 sal_Int32 nStructureDict = 0; in emitCatalog()
5810 sal_Int32 nMediaBoxWidth = 0; in emitCatalog()
5811 sal_Int32 nMediaBoxHeight = 0; in emitCatalog()
5842 aLine.append( (sal_Int32)m_aPages.size() ); in emitCatalog()
5901 if( m_aContext.InitialPage >= 0 && m_aContext.InitialPage < (sal_Int32)m_aPages.size() ) in emitCatalog()
6062 sal_Int32 PDFWriterImpl::emitInfoDict( ) in emitInfoDict()
6064 sal_Int32 nObject = createObject(); in emitInfoDict()
6124 sal_Int32 PDFWriterImpl::emitNamedDestinations() in emitNamedDestinations()
6126 sal_Int32 nCount = m_aNamedDests.size(); in emitNamedDestinations()
6131 sal_Int32 nObject = createObject(); in emitNamedDestinations()
6141 sal_Int32 nDestID; in emitNamedDestinations()
6225 sal_Int32 PDFWriterImpl::emitOutputIntent() in emitOutputIntent()
6233 sal_Int32 nICCObject = createObject(); in emitOutputIntent()
6234 sal_Int32 nStreamLengthObject = createObject(); in emitOutputIntent()
6252sal_Int32 nStreamSize = writeBuffer( nsRGB_ICC_profile, (sal_Int32) sizeof( nsRGB_ICC_profile ) ); in emitOutputIntent()
6275 sal_Int32 nOIObject = createObject(); in emitOutputIntent()
6324 sal_Int32 PDFWriterImpl::emitDocumentMetadata() in emitDocumentMetadata()
6330 sal_Int32 nObject = createObject(); in emitDocumentMetadata()
6443 for( sal_Int32 nSpaces = 1; nSpaces <= 2100; nSpaces++ ) in emitDocumentMetadata()
6459 aMetadataObj.append( (sal_Int32) aMetadataStream.getLength() ); in emitDocumentMetadata()
6481 sal_Int32 nDocInfoObject = emitInfoDict( ); in emitTrailer()
6483 sal_Int32 nSecObject = 0; in emitTrailer()
6506 …appendLiteralString( (const sal_Char*)&m_aContext.Encryption.OValue[0], sal_Int32(m_aContext.Encry… in emitTrailer()
6508 …appendLiteralString( (const sal_Char*)&m_aContext.Encryption.UValue[0], sal_Int32(m_aContext.Encry… in emitTrailer()
6524 sal_Int32 nObjects = m_aObjects.size(); in emitTrailer()
6527 aLine.append( (sal_Int32)(nObjects+1) ); in emitTrailer()
6532 for( sal_Int32 i = 0; i < nObjects; i++ ) in emitTrailer()
6536 for( sal_Int32 j = 0; j < (10-aOffset.getLength()); j++ ) in emitTrailer()
6558 aLine.append( (sal_Int32)(nObjects+1) ); in emitTrailer()
6622 sal_Int32 nTabOrder;
6623 sal_Int32 nObject;
6624 sal_Int32 nWidgetIndex;
6626 AnnotationSortEntry( sal_Int32 nTab, sal_Int32 nObj, sal_Int32 nI ) : in AnnotationSortEntry()
6635 std::set< sal_Int32 > aObjects;
6675 std::hash_map< sal_Int32, AnnotSortContainer > sorted; in sortWidgets()
6695 …for( std::hash_map< sal_Int32, AnnotSortContainer >::iterator it = sorted.begin(); it != sorted.en… in sortWidgets()
6749 sal_Int32 nBytes = aData.getLength(); in writeBytes()
6771 sal_Int32 nSizeObject = createObject(); in emitAdditionalStreams()
6856 sal_Int32 PDFWriterImpl::getSystemFont( const Font& i_rFont ) in getSystemFont()
6863 sal_Int32 nFontID = 0; in getSystemFont()
6882 sal_Int32* pGlyphWidths, in registerGlyphs()
6884 sal_Int32* pUnicodesPerGlyph, in registerGlyphs()
6886 sal_Int32* pMappedFontObjects, in registerGlyphs()
6898 sal_Int32 nFontID = 0; in registerGlyphs()
6947 for( sal_Int32 n = 0; n < pUnicodesPerGlyph[i]; n++ ) in registerGlyphs()
6964 sal_Int32 nFontID = 0; in registerGlyphs()
6984 sal_Int32 nCurFontID = nFontID; in registerGlyphs()
7140 sal_Int32 nFontHeight ) in drawVerticalGlyphs()
7217 sal_Int32 nFontHeight, in drawHorizontalGlyphs()
7218 sal_Int32 nPixelFontHeight in drawHorizontalGlyphs()
7292 … const sal_Int32 nAdjustment = (sal_Int32)(rGlyphs[nPos-1].m_nNativeWidth - fAdvance + 0.5); in drawHorizontalGlyphs()
7328 sal_Int32 pGlyphWidths[nMaxGlyphs]; in drawLayout()
7330 sal_Int32 pMappedFontObjects[nMaxGlyphs]; in drawLayout()
7333 sal_Int32 pUnicodesPerGlyph[nMaxGlyphs]; in drawLayout()
7335 sal_Int32 nAdvanceWidths[nMaxGlyphs]; in drawLayout()
7343 sal_Int32 nPixelFontHeight = m_pReferenceDevice->mpFontEntry->maFontSelData.mnHeight; in drawLayout()
7348 sal_Int32 nFontHeight = m_pReferenceDevice->ImplDevicePixelToLogicHeight( nPixelFontHeight ); in drawLayout()
7575 sal_Int32 nWidth = 0, nAdvance=0; in drawLayout()
7678 sal_Int32 nAdvance; in drawLayout()
7759 void PDFWriterImpl::drawTextArray( const Point& rPos, const String& rText, const sal_Int32* pDXArra… in drawTextArray()
7985 …erImpl::drawWaveLine( const Point& rStart, const Point& rStop, sal_Int32 nDelta, sal_Int32 nLineWi… in drawWaveLine()
8013 m_aPages.back().appendWaveLine( (sal_Int32)fLen, 0, nDelta, aLine ); in drawWaveLine()
8055 m_aPages.back().appendMappedLength( (sal_Int32)nLineWidth, aLine ); in drawWaveTextLine()
8170 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, true ); in drawStraightTextLine()
8180 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8188 sal_Int32 nDashLength = 4*nLineHeight; in drawStraightTextLine()
8189 sal_Int32 nVoidLength = 2*nLineHeight; in drawStraightTextLine()
8203 sal_Int32 nDashLength = 4*nLineHeight; in drawStraightTextLine()
8204 sal_Int32 nVoidLength = 2*nLineHeight; in drawStraightTextLine()
8210 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8219 sal_Int32 nDashLength = 4*nLineHeight; in drawStraightTextLine()
8220 sal_Int32 nVoidLength = 2*nLineHeight; in drawStraightTextLine()
8226 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8230 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8241 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStraightTextLine()
8243 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, false ); in drawStraightTextLine()
8245 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStraightTextLine()
8250 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStraightTextLine()
8252 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, false ); in drawStraightTextLine()
8254 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStraightTextLine()
8298 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, true ); in drawStrikeoutLine()
8304 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStrikeoutLine()
8306 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, true ); in drawStrikeoutLine()
8308 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStrikeoutLine()
8314 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStrikeoutLine()
8316 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, true ); in drawStrikeoutLine()
8318 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStrikeoutLine()
8559 void PDFWriterImpl::pushResource( ResourceKind eKind, const OString& rResource, sal_Int32 nObject ) in pushResource()
9254 sal_Int32 nLW = sal_Int32(rInfo.m_fLineWidth); in drawPolyLine()
9389 aLine.append( (sal_Int32)(nSize) ); in writeTransparentObject()
9438 sal_Int32 nMaskSize = (sal_Int32)rObject.m_pSoftMaskStream->Tell(); in writeTransparentObject()
9440 sal_Int32 nMaskObject = createObject(); in writeTransparentObject()
9493 sal_Int32 nFunctionObject = createObject(); in writeGradientFunction()
9511 sal_Int32 nStreamLengthObject = createObject(); in writeGradientFunction()
9521 aLine.append( (sal_Int32)aSize.Width() ); in writeGradientFunction()
9523 aLine.append( (sal_Int32)aSize.Height() ); in writeGradientFunction()
9583 aLine.append( (sal_Int32)aSize.Width() ); in writeGradientFunction()
9585 aLine.append( (sal_Int32)aSize.Height() ); in writeGradientFunction()
9602 sal_Int32 nLength = 0; in writeJPG()
9607 sal_Int32 nMaskObject = 0; in writeJPG()
9630 aLine.append( (sal_Int32)rObject.m_aID.m_aPixelSize.Width() ); in writeJPG()
9632 aLine.append( (sal_Int32)rObject.m_aID.m_aPixelSize.Height() ); in writeJPG()
9725 sal_Int32 nBitsPerComponent; in writeBitmapObject()
9741 sal_Int32 nStreamLengthObject = createObject(); in writeBitmapObject()
9742 sal_Int32 nMaskObject = 0; in writeBitmapObject()
9751 aLine.append( (sal_Int32)aBitmap.GetSizePixel().Width() ); in writeBitmapObject()
9753 aLine.append( (sal_Int32)aBitmap.GetSizePixel().Height() ); in writeBitmapObject()
9767 aLine.append( (sal_Int32)aBitmap.GetSizePixel().Width() ); in writeBitmapObject()
9782sal_Int32 nBlackIndex = pAccess->GetBestPaletteIndex( BitmapColor( Color( COL_BLACK ) ) ); in writeBitmapObject()
9791 aLine.append( (sal_Int32)(pAccess->GetPaletteEntryCount()-1) ); in writeBitmapObject()
9838sal_Int32 nBlackIndex = pAccess->GetBestPaletteIndex( BitmapColor( Color( COL_BLACK ) ) ); in writeBitmapObject()
9869 aLine.append( (sal_Int32)aTransparentColor.GetRed() ); in writeBitmapObject()
9871 aLine.append( (sal_Int32)aTransparentColor.GetRed() ); in writeBitmapObject()
9873 aLine.append( (sal_Int32)aTransparentColor.GetGreen() ); in writeBitmapObject()
9875 aLine.append( (sal_Int32)aTransparentColor.GetGreen() ); in writeBitmapObject()
9877 aLine.append( (sal_Int32)aTransparentColor.GetBlue() ); in writeBitmapObject()
9879 aLine.append( (sal_Int32)aTransparentColor.GetBlue() ); in writeBitmapObject()
9883 sal_Int32 nIndex = pAccess->GetBestPaletteIndex( BitmapColor( aTransparentColor ) ); in writeBitmapObject()
10024 sal_Int32 nCheckWidth = 0; in drawJPGBitmap()
10025 …m_aPages.back().appendMappedLength( (sal_Int32)rTargetArea.GetWidth(), aLine, false, &nCheckWidth … in drawJPGBitmap()
10027 sal_Int32 nCheckHeight = 0; in drawJPGBitmap()
10028 …m_aPages.back().appendMappedLength( (sal_Int32)rTargetArea.GetHeight(), aLine, true, &nCheckHeight… in drawJPGBitmap()
10062 sal_Int32 nCheckWidth = 0; in drawBitmap()
10063 m_aPages.back().appendMappedLength( (sal_Int32)rDestSize.Width(), aLine, false, &nCheckWidth ); in drawBitmap()
10065 sal_Int32 nCheckHeight = 0; in drawBitmap()
10066 m_aPages.back().appendMappedLength( (sal_Int32)rDestSize.Height(), aLine, true, &nCheckHeight ); in drawBitmap()
10173 sal_Int32 PDFWriterImpl::createGradient( const Gradient& rGradient, const Size& rSize ) in createGradient()
10220 sal_Int32 nGradient = createGradient( rGradient, rRect.GetSize() ); in drawGradient()
10235 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetWidth(), aLine, false ); in drawGradient()
10237 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine, true ); in drawGradient()
10246 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetWidth(), aLine, false ); in drawGradient()
10248 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine, true ); in drawGradient()
10266 sal_Int32 nGradient = createGradient( rGradient, aBoundRect.GetSize() ); in drawGradient()
10485 sal_Int32 PDFWriterImpl::endPattern( const SvtGraphicFill::Transform& rTransform ) in endPattern()
10499 sal_Int32 nTilingId = m_aTilings.size(); in endPattern()
10523 void PDFWriterImpl::drawPolyPolygon( const PolyPolygon& rPolyPoly, sal_Int32 nPattern, bool bEOFill… in drawPolyPolygon()
10525 if( nPattern < 0 || nPattern >= (sal_Int32)m_aTilings.size() ) in drawPolyPolygon()
10529 sal_Int32 nXObject = createObject(); in drawPolyPolygon()
10546 sal_Int32 nPgWd = getReferenceDevice()->ImplGetDPIX() * m_aPages.back().getWidth() / 72; in drawPolyPolygon()
10547 sal_Int32 nPgHt = getReferenceDevice()->ImplGetDPIY() * m_aPages.back().getHeight() / 72; in drawPolyPolygon()
10549 sal_Int32 nXOff = aObjRect.Left(); in drawPolyPolygon()
10550 sal_Int32 nYOff = aLogicPgSz.Height() - aObjRect.Bottom(); in drawPolyPolygon()
10564 sal_Int32 nStreamLen = (sal_Int32)aMemStream.Tell(); in drawPolyPolygon()
10782 void PDFWriterImpl::moveClipRegion( sal_Int32 nX, sal_Int32 nY ) in moveClipRegion()
10828 void PDFWriterImpl::createNote( const Rectangle& rRect, const PDFNote& rNote, sal_Int32 nPageNr ) in createNote()
10833 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in createNote()
10847 sal_Int32 PDFWriterImpl::createLink( const Rectangle& rRect, sal_Int32 nPageNr ) in createLink()
10852 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in createLink()
10855 sal_Int32 nRet = m_aLinks.size(); in createLink()
10871 sal_Int32 PDFWriterImpl::createNamedDest( const rtl::OUString& sDestName, const Rectangle& rRect, s… in createNamedDest()
10876 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in createNamedDest()
10879 sal_Int32 nRet = m_aNamedDests.size(); in createNamedDest()
10893 sal_Int32 PDFWriterImpl::createDest( const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestArea… in createDest()
10898 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in createDest()
10901 sal_Int32 nRet = m_aDests.size(); in createDest()
10913 sal_Int32 PDFWriterImpl::registerDestReference( sal_Int32 nDestId, const Rectangle& rRect, sal_Int3… in registerDestReference()
10918 sal_Int32 PDFWriterImpl::setLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId ) in setLinkDest()
10920 if( nLinkId < 0 || nLinkId >= (sal_Int32)m_aLinks.size() ) in setLinkDest()
10922 if( nDestId < 0 || nDestId >= (sal_Int32)m_aDests.size() ) in setLinkDest()
10930 sal_Int32 PDFWriterImpl::setLinkURL( sal_Int32 nLinkId, const OUString& rURL ) in setLinkURL()
10932 if( nLinkId < 0 || nLinkId >= (sal_Int32)m_aLinks.size() ) in setLinkURL()
10960 void PDFWriterImpl::setLinkPropertyId( sal_Int32 nLinkId, sal_Int32 nPropertyId ) in setLinkPropertyId()
10965 sal_Int32 PDFWriterImpl::createOutlineItem( sal_Int32 nParent, const OUString& rText, sal_Int32 nDe… in createOutlineItem()
10968 sal_Int32 nNewItem = m_aOutline.size(); in createOutlineItem()
10979 sal_Int32 PDFWriterImpl::setOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent ) in setOutlineItemParent()
10981 if( nItem < 1 || nItem >= (sal_Int32)m_aOutline.size() ) in setOutlineItemParent()
10986 if( nNewParent < 0 || nNewParent >= (sal_Int32)m_aOutline.size() || nNewParent == nItem ) in setOutlineItemParent()
10992 sal_Int32 nParentID = m_aOutline[ nItem ].m_nParentID; in setOutlineItemParent()
10993 if( nParentID >= 0 && nParentID < (sal_Int32)m_aOutline.size() ) in setOutlineItemParent()
10997 for( std::vector<sal_Int32>::iterator it = rParent.m_aChildren.begin(); in setOutlineItemParent()
11014 sal_Int32 PDFWriterImpl::setOutlineItemText( sal_Int32 nItem, const OUString& rText ) in setOutlineItemText()
11016 if( nItem < 1 || nItem >= (sal_Int32)m_aOutline.size() ) in setOutlineItemText()
11023 sal_Int32 PDFWriterImpl::setOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID ) in setOutlineItemDest()
11025 if( nItem < 1 || nItem >= (sal_Int32)m_aOutline.size() ) // item does not exist in setOutlineItemDest()
11027 if( nDestID < 0 || nDestID >= (sal_Int32)m_aDests.size() ) // dest does not exist in setOutlineItemDest()
11091 sal_Int32 nMCID = m_aPages[ m_nCurrentPage ].m_aMCIDParents.size(); in beginStructureElementMCSeq()
11148 sal_Int32 nEle = m_nCurrentStructElement; in checkEmitStructure()
11149 while( nEle > 0 && nEle < sal_Int32(m_aStructure.size()) ) in checkEmitStructure()
11162 sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType, const rtl::OUString… in beginStructureElement()
11182 sal_Int32 nNewCurElement = 0; in beginStructureElement()
11183 const std::list< sal_Int32 >& rRootChildren = m_aStructure[0].m_aChildren; in beginStructureElement()
11184 for( std::list< sal_Int32 >::const_iterator it = rRootChildren.begin(); in beginStructureElement()
11204 sal_Int32 nNewId = sal_Int32(m_aStructure.size()); in beginStructureElement()
11306 …for( std::list< sal_Int32 >::const_iterator it = rEle.m_aChildren.begin(); it != rEle.m_aChildren.… in addInternalStructureContainer()
11308 if( *it > 0 && *it < sal_Int32(m_aStructure.size()) ) in addInternalStructureContainer()
11342 std::list< sal_Int32 > aNewChildren; in addInternalStructureContainer()
11351 sal_Int32 nCurrentStructElement = rEle.m_nOwnElement; in addInternalStructureContainer()
11352 sal_Int32 nNewId = sal_Int32(m_aStructure.size()); in addInternalStructureContainer()
11366 std::list< sal_Int32 >::iterator aChildEndIt( rEle.m_aChildren.begin() ); in addInternalStructureContainer()
11380 for( std::list< sal_Int32 >::const_iterator it = rEleNew.m_aChildren.begin(); in addInternalStructureContainer()
11395 bool PDFWriterImpl::setCurrentStructureElement( sal_Int32 nEle ) in setCurrentStructureElement()
11399 if( m_aContext.Tagged && nEle >= 0 && nEle < sal_Int32(m_aStructure.size()) ) in setCurrentStructureElement()
11427 sal_Int32 PDFWriterImpl::getCurrentStructureElement() in getCurrentStructureElement()
11628 …iterImpl::setStructureAttributeNumerical( enum PDFWriter::StructAttribute eAttr, sal_Int32 nValue ) in setStructureAttributeNumerical()
11763 sal_Int32 nPageNr = m_nCurrentPage; in setStructureBoundingBox()
11764 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() || !m_aContext.Tagged ) in setStructureBoundingBox()
11799 void PDFWriterImpl::setAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr ) in setAutoAdvanceTime()
11804 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in setAutoAdvanceTime()
11810 …Impl::setPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr ) in setPageTransition()
11815 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in setPageTransition()
11825 for( std::map<sal_Int32,sal_Int32>::const_iterator group = m_aRadioGroupWidgets.begin(); in ensureUniqueRadioOnValues()
11830 std::hash_map< OUString, sal_Int32, OUStringHash > aOnValues; in ensureUniqueRadioOnValues()
11859 rKid.m_aOnValue = OUString::valueOf( sal_Int32(nKid+1) ); in ensureUniqueRadioOnValues()
11895 sal_Int32 PDFWriterImpl::findRadioGroupWidget( const PDFWriter::RadioButtonWidget& rBtn ) in findRadioGroupWidget()
11897 sal_Int32 nRadioGroupWidget = -1; in findRadioGroupWidget()
11899 …std::map< sal_Int32, sal_Int32 >::const_iterator it = m_aRadioGroupWidgets.find( rBtn.RadioGroup ); in findRadioGroupWidget()
11904 sal_Int32(m_aWidgets.size()); in findRadioGroupWidget()
11914 createWidgetFieldName( sal_Int32(m_aWidgets.size()-1), rBtn ); in findRadioGroupWidget()
11922 sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sal_Int32 nPageNr ) in createControl()
11927 if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() ) in createControl()
11930 sal_Int32 nNewWidget = m_aWidgets.size(); in createControl()
11938 sal_Int32 nRadioGroupWidget = -1; in createControl()
11993 …DBG_ASSERT( nRadioGroupWidget >= 0 && nRadioGroupWidget < (sal_Int32)m_aWidgets.size(), "no radio … in createControl()
12108 void PDFWriterImpl::beginControlAppearance( sal_Int32 nControl ) in beginControlAppearance()
12110 if( nControl < 0 || nControl >= (sal_Int32)m_aWidgets.size() ) in beginControlAppearance()
12137 if( pAppearance && m_nCurrentControl >= 0 && m_nCurrentControl < (sal_Int32)m_aWidgets.size() ) in endControlAppearance()