Lines Matching refs:maModel

715     maModel( rHelper.getTheme().getDefaultFontModel() ),  in Font()
723 maModel( rModel ), in Font()
738 maModel.maName = rAttribs.getXString( XML_val, OUString() ); in importAttribs()
743 maModel.mnScheme = rAttribs.getToken( XML_val, rDefModel.mnScheme ); in importAttribs()
746 maModel.mnFamily = rAttribs.getInteger( XML_val, rDefModel.mnFamily ); in importAttribs()
749 maModel.mnCharSet = rAttribs.getInteger( XML_val, rDefModel.mnCharSet ); in importAttribs()
752 maModel.mfHeight = rAttribs.getDouble( XML_val, rDefModel.mfHeight ); in importAttribs()
756 maModel.maColor.importColor( rAttribs ); in importAttribs()
760 maModel.mnUnderline = rAttribs.getToken( XML_val, XML_single ); in importAttribs()
764 maModel.mnEscapement = rAttribs.getToken( XML_val, XML_baseline ); in importAttribs()
768 maModel.mbBold = rAttribs.getBool( XML_val, true ); in importAttribs()
772 maModel.mbItalic = rAttribs.getBool( XML_val, true ); in importAttribs()
776 maModel.mbStrikeout = rAttribs.getBool( XML_val, true ); in importAttribs()
780 maModel.mbOutline = rAttribs.getBool( XML_val, true ); in importAttribs()
784 maModel.mbShadow = rAttribs.getBool( XML_val, true ); in importAttribs()
798 rStrm >> maModel.maColor >> nScheme >> maModel.maName; in importFont()
801 maModel.setBiff12Scheme( nScheme ); in importFont()
802 maModel.setBiffHeight( nHeight ); in importFont()
803 maModel.setBiffWeight( nWeight ); in importFont()
804 maModel.setBiffUnderline( nUnderline ); in importFont()
805 maModel.setBiffEscapement( nEscapement ); in importFont()
806 maModel.mnFamily = nFamily; in importFont()
807 maModel.mnCharSet = nCharSet; in importFont()
809 maModel.mbItalic = getFlag( nFlags, BIFF_FONTFLAG_ITALIC ); in importFont()
810 maModel.mbStrikeout = getFlag( nFlags, BIFF_FONTFLAG_STRIKEOUT ); in importFont()
811 maModel.mbOutline = getFlag( nFlags, BIFF_FONTFLAG_OUTLINE ); in importFont()
812 maModel.mbShadow = getFlag( nFlags, BIFF_FONTFLAG_SHADOW ); in importFont()
818 maModel.maName = BiffHelper::readString( rStrm, false ); in importDxfName()
825 rStrm >> maModel.maColor; in importDxfColor()
832 maModel.setBiff12Scheme( rStrm.readuInt8() ); in importDxfScheme()
839 maModel.setBiffHeight( rStrm.readuInt16() ); in importDxfHeight()
846 maModel.setBiffWeight( rStrm.readuInt16() ); in importDxfWeight()
853 maModel.setBiffUnderline( rStrm.readuInt16() ); in importDxfUnderline()
860 maModel.setBiffEscapement( rStrm.readuInt16() ); in importDxfEscapement()
871 maModel.mbItalic = bFlag; in importDxfFlag()
875 maModel.mbStrikeout = bFlag; in importDxfFlag()
879 maModel.mbOutline = bFlag; in importDxfFlag()
883 maModel.mbShadow = bFlag; in importDxfFlag()
925 maModel.maColor.importColorId( rStrm ); in importFontColor()
939 maModel.maName = rStrm.readUniStringBody( rStrm.readuInt8() ); in importCfRule()
940 maUsedFlags.mbNameUsed = maModel.maName.getLength() > 0; in importCfRule()
951 maModel.maColor.setIndexed( nColor ); in importCfRule()
953 maModel.setBiffHeight( static_cast< sal_uInt16 >( nHeight ) ); in importCfRule()
955 maModel.setBiffUnderline( nUnderline ); in importCfRule()
957 maModel.setBiffEscapement( nEscapement ); in importCfRule()
960 maModel.setBiffWeight( nWeight ); in importCfRule()
961 maModel.mbItalic = getFlag( nStyle, BIFF_CFRULE_FONT_STYLE ); in importCfRule()
964 maModel.mbStrikeout = getFlag( nStyle, BIFF_CFRULE_FONT_STRIKEOUT ); in importCfRule()
966 maModel.mbOutline = getFlag( nStyle, BIFF_CFRULE_FONT_OUTLINE ); in importCfRule()
968 maModel.mbShadow = getFlag( nStyle, BIFF_CFRULE_FONT_SHADOW ); in importCfRule()
977 if( (0 <= maModel.mnCharSet) && (maModel.mnCharSet <= SAL_MAX_UINT8) ) in getFontEncoding()
978 … eFontEnc = rtl_getTextEncodingFromWindowsCharset( static_cast< sal_uInt8 >( maModel.mnCharSet ) ); in getFontEncoding()
987 maApiData.maDesc.Name = maModel.maName; in finalizeImport()
990 switch( maModel.mnFamily ) in finalizeImport()
1001 if( (0 <= maModel.mnCharSet) && (maModel.mnCharSet <= SAL_MAX_UINT8) ) in finalizeImport()
1003 … rtl_getTextEncodingFromWindowsCharset( static_cast< sal_uInt8 >( maModel.mnCharSet ) ) ); in finalizeImport()
1006 maApiData.mnColor = maModel.maColor.getColor( getBaseFilter().getGraphicHelper() ); in finalizeImport()
1007 maApiData.maDesc.Height = static_cast< sal_Int16 >( maModel.mfHeight * 20.0 ); in finalizeImport()
1008 …maApiData.maDesc.Weight = maModel.mbBold ? cssawt::FontWeight::BOLD : cssawt::FontWeight::NORMA… in finalizeImport()
1009 … maApiData.maDesc.Slant = maModel.mbItalic ? cssawt::FontSlant_ITALIC : cssawt::FontSlant_NONE; in finalizeImport()
1010 …maApiData.maDesc.Strikeout = maModel.mbStrikeout ? cssawt::FontStrikeout::SINGLE : cssawt::FontStr… in finalizeImport()
1011 maApiData.mbOutline = maModel.mbOutline; in finalizeImport()
1012 maApiData.mbShadow = maModel.mbShadow; in finalizeImport()
1015 switch( maModel.mnUnderline ) in finalizeImport()
1025 switch( maModel.mnEscapement ) in finalizeImport()
1181 maModel.setBiffHeight( nHeight ); in importFontData2()
1182 maModel.mnFamily = OOX_FONTFAMILY_NONE; in importFontData2()
1183 maModel.mnCharSet = -1; // ensure to not use font charset in byte string import in importFontData2()
1184 maModel.mnUnderline = getFlagValue( nFlags, BIFF_FONTFLAG_UNDERLINE, XML_single, XML_none ); in importFontData2()
1185 maModel.mnEscapement = XML_none; in importFontData2()
1186 maModel.mbBold = getFlag( nFlags, BIFF_FONTFLAG_BOLD ); in importFontData2()
1187 maModel.mbItalic = getFlag( nFlags, BIFF_FONTFLAG_ITALIC ); in importFontData2()
1188 maModel.mbStrikeout = getFlag( nFlags, BIFF_FONTFLAG_STRIKEOUT ); in importFontData2()
1189 maModel.mbOutline = getFlag( nFlags, BIFF_FONTFLAG_OUTLINE ); in importFontData2()
1190 maModel.mbShadow = getFlag( nFlags, BIFF_FONTFLAG_SHADOW ); in importFontData2()
1200 maModel.setBiffWeight( nWeight ); in importFontData5()
1201 maModel.setBiffUnderline( nUnderline ); in importFontData5()
1202 maModel.setBiffEscapement( nEscapement ); in importFontData5()
1204 maModel.mnFamily = nFamily; in importFontData5()
1205 maModel.mnCharSet = nCharSet; in importFontData5()
1210 maModel.maName = rStrm.readByteStringUC( false, getTextEncoding() ); in importFontName2()
1215 maModel.maName = rStrm.readUniStringBody( rStrm.readuInt8() ); in importFontName8()
1291 maModel.mnHorAlign = rAttribs.getToken( XML_horizontal, XML_general ); in importAlignment()
1292 maModel.mnVerAlign = rAttribs.getToken( XML_vertical, XML_bottom ); in importAlignment()
1293 maModel.mnTextDir = rAttribs.getInteger( XML_readingOrder, OOX_XF_TEXTDIR_CONTEXT ); in importAlignment()
1294 maModel.mnRotation = rAttribs.getInteger( XML_textRotation, OOX_XF_ROTATION_NONE ); in importAlignment()
1295 maModel.mnIndent = rAttribs.getInteger( XML_indent, OOX_XF_INDENT_NONE ); in importAlignment()
1296 maModel.mbWrapText = rAttribs.getBool( XML_wrapText, false ); in importAlignment()
1297 maModel.mbShrink = rAttribs.getBool( XML_shrinkToFit, false ); in importAlignment()
1298 maModel.mbJustLastLine = rAttribs.getBool( XML_justifyLastLine, false ); in importAlignment()
1303 maModel.setBiffHorAlign( extractValue< sal_uInt8 >( nFlags, 16, 3 ) ); in setBiff12Data()
1304 maModel.setBiffVerAlign( extractValue< sal_uInt8 >( nFlags, 19, 3 ) ); in setBiff12Data()
1305 maModel.mnTextDir = extractValue< sal_Int32 >( nFlags, 26, 2 ); in setBiff12Data()
1306 maModel.mnRotation = extractValue< sal_Int32 >( nFlags, 0, 8 ); in setBiff12Data()
1307 maModel.mnIndent = extractValue< sal_uInt8 >( nFlags, 8, 8 ); in setBiff12Data()
1308 maModel.mbWrapText = getFlag( nFlags, BIFF12_XF_WRAPTEXT ); in setBiff12Data()
1309 maModel.mbShrink = getFlag( nFlags, BIFF12_XF_SHRINK ); in setBiff12Data()
1310 maModel.mbJustLastLine = getFlag( nFlags, BIFF12_XF_JUSTLASTLINE ); in setBiff12Data()
1315 maModel.setBiffHorAlign( extractValue< sal_uInt8 >( nFlags, 0, 3 ) ); in setBiff2Data()
1320 maModel.setBiffHorAlign( extractValue< sal_uInt8 >( nAlign, 0, 3 ) ); in setBiff3Data()
1321 maModel.mbWrapText = getFlag( nAlign, BIFF_XF_WRAPTEXT ); // new in BIFF3 in setBiff3Data()
1326 maModel.setBiffHorAlign( extractValue< sal_uInt8 >( nAlign, 0, 3 ) ); in setBiff4Data()
1327 maModel.setBiffVerAlign( extractValue< sal_uInt8 >( nAlign, 4, 2 ) ); // new in BIFF4 in setBiff4Data()
1328 maModel.setBiffTextOrient( extractValue< sal_uInt8 >( nAlign, 6, 2 ) ); // new in BIFF4 in setBiff4Data()
1329 maModel.mbWrapText = getFlag( nAlign, BIFF_XF_WRAPTEXT ); in setBiff4Data()
1334 maModel.setBiffHorAlign( extractValue< sal_uInt8 >( nAlign, 0, 3 ) ); in setBiff5Data()
1335 maModel.setBiffVerAlign( extractValue< sal_uInt8 >( nAlign, 4, 3 ) ); in setBiff5Data()
1336 maModel.setBiffTextOrient( extractValue< sal_uInt8 >( nAlign, 8, 2 ) ); in setBiff5Data()
1337 maModel.mbWrapText = getFlag( nAlign, BIFF_XF_WRAPTEXT ); in setBiff5Data()
1342 maModel.setBiffHorAlign( extractValue< sal_uInt8 >( nAlign, 0, 3 ) ); in setBiff8Data()
1343 maModel.setBiffVerAlign( extractValue< sal_uInt8 >( nAlign, 4, 3 ) ); in setBiff8Data()
1344 maModel.mnTextDir = extractValue< sal_Int32 >( nMiscAttrib, 6, 2 ); // new in BIFF8 in setBiff8Data()
1345 maModel.mnRotation = extractValue< sal_Int32 >( nAlign, 8, 8 ); // new in BIFF8 in setBiff8Data()
1346 maModel.mnIndent = extractValue< sal_uInt8 >( nMiscAttrib, 0, 4 ); // new in BIFF8 in setBiff8Data()
1347 maModel.mbWrapText = getFlag( nAlign, BIFF_XF_WRAPTEXT ); in setBiff8Data()
1348 maModel.mbShrink = getFlag( nMiscAttrib, BIFF_XF_SHRINK ); // new in BIFF8 in setBiff8Data()
1349 maModel.mbJustLastLine = getFlag( nAlign, BIFF_XF_JUSTLASTLINE ); // new in BIFF8(?) in setBiff8Data()
1358 switch( maModel.mnHorAlign ) in finalizeImport()
1371 switch( maModel.mnVerAlign ) in finalizeImport()
1385 …case FILTER_OOXML: nIndent = getUnitConverter().scaleToMm100( 3.0 * maModel.mnIndent, UNIT_SPACE … in finalizeImport()
1386 …case FILTER_BIFF: nIndent = getUnitConverter().scaleToMm100( 10.0 * maModel.mnIndent, UNIT_POINT… in finalizeImport()
1393 switch( maModel.mnTextDir ) in finalizeImport()
1401 sal_Int32 nOoxRot = maModel.mnRotation; in finalizeImport()
1411 …maApiData.mbWrapText = maModel.mbWrapText || (maModel.mnVerAlign == XML_distributed) || (maModel.m… in finalizeImport()
1412 maApiData.mbShrink = maModel.mbShrink; in finalizeImport()
1461 maModel.mbLocked = rAttribs.getBool( XML_locked, true ); in importProtection()
1462 maModel.mbHidden = rAttribs.getBool( XML_hidden, false ); in importProtection()
1467 maModel.mbLocked = getFlag( nFlags, BIFF12_XF_LOCKED ); in setBiff12Data()
1468 maModel.mbHidden = getFlag( nFlags, BIFF12_XF_HIDDEN ); in setBiff12Data()
1473 maModel.mbLocked = getFlag( nNumFmt, BIFF2_XF_LOCKED ); in setBiff2Data()
1474 maModel.mbHidden = getFlag( nNumFmt, BIFF2_XF_HIDDEN ); in setBiff2Data()
1479 maModel.mbLocked = getFlag( nProt, BIFF_XF_LOCKED ); in setBiff3Data()
1480 maModel.mbHidden = getFlag( nProt, BIFF_XF_HIDDEN ); in setBiff3Data()
1485 maApiData.maCellProt.IsLocked = maModel.mbLocked; in finalizeImport()
1486 maApiData.maCellProt.IsFormulaHidden = maModel.mbHidden; in finalizeImport()
1625 maModel( bDxf ), in Border()
1632 maModel.mbDiagTLtoBR = rAttribs.getBool( XML_diagonalDown, false ); in importBorder()
1633 maModel.mbDiagBLtoTR = rAttribs.getBool( XML_diagonalUp, false ); in importBorder()
1654 maModel.mbDiagTLtoBR = getFlag( nFlags, BIFF12_BORDER_DIAG_TLBR ); in importBorder()
1655 maModel.mbDiagBLtoTR = getFlag( nFlags, BIFF12_BORDER_DIAG_BLTR ); in importBorder()
1656 maModel.maTop.setBiffStyle( rStrm.readuInt16() ); in importBorder()
1657 rStrm >> maModel.maTop.maColor; in importBorder()
1658 maModel.maBottom.setBiffStyle( rStrm.readuInt16() ); in importBorder()
1659 rStrm >> maModel.maBottom.maColor; in importBorder()
1660 maModel.maLeft.setBiffStyle( rStrm.readuInt16() ); in importBorder()
1661 rStrm >> maModel.maLeft.maColor; in importBorder()
1662 maModel.maRight.setBiffStyle( rStrm.readuInt16() ); in importBorder()
1663 rStrm >> maModel.maRight.maColor; in importBorder()
1664 maModel.maDiagonal.setBiffStyle( rStrm.readuInt16() ); in importBorder()
1665 rStrm >> maModel.maDiagonal.maColor; in importBorder()
1683maModel.maLeft.setBiffData( getFlagValue( nFlags, BIFF2_XF_LEFTLINE, BIFF_LINE_THIN, BIFF_LINE… in setBiff2Data()
1684maModel.maRight.setBiffData( getFlagValue( nFlags, BIFF2_XF_RIGHTLINE, BIFF_LINE_THIN, BIFF_LINE… in setBiff2Data()
1685maModel.maTop.setBiffData( getFlagValue( nFlags, BIFF2_XF_TOPLINE, BIFF_LINE_THIN, BIFF_LINE… in setBiff2Data()
1686maModel.maBottom.setBiffData( getFlagValue( nFlags, BIFF2_XF_BOTTOMLINE, BIFF_LINE_THIN, BIFF_LINE… in setBiff2Data()
1687 maModel.maDiagonal.mbUsed = false; in setBiff2Data()
1693maModel.maLeft.setBiffData( extractValue< sal_uInt8 >( nBorder, 8, 3 ), extractValue< sal_uInt1… in setBiff3Data()
1694maModel.maRight.setBiffData( extractValue< sal_uInt8 >( nBorder, 24, 3 ), extractValue< sal_uInt1… in setBiff3Data()
1695maModel.maTop.setBiffData( extractValue< sal_uInt8 >( nBorder, 0, 3 ), extractValue< sal_uInt1… in setBiff3Data()
1696maModel.maBottom.setBiffData( extractValue< sal_uInt8 >( nBorder, 16, 3 ), extractValue< sal_uInt1… in setBiff3Data()
1697 maModel.maDiagonal.mbUsed = false; in setBiff3Data()
1703maModel.maLeft.setBiffData( extractValue< sal_uInt8 >( nBorder, 3, 3 ), extractValue< sal_uInt1… in setBiff5Data()
1704maModel.maRight.setBiffData( extractValue< sal_uInt8 >( nBorder, 6, 3 ), extractValue< sal_uInt1… in setBiff5Data()
1705maModel.maTop.setBiffData( extractValue< sal_uInt8 >( nBorder, 0, 3 ), extractValue< sal_uInt1… in setBiff5Data()
1706maModel.maBottom.setBiffData( extractValue< sal_uInt8 >( nArea, 22, 3 ), extractValue< sal_uInt1… in setBiff5Data()
1707 maModel.maDiagonal.mbUsed = false; in setBiff5Data()
1713maModel.maLeft.setBiffData( extractValue< sal_uInt8 >( nBorder1, 0, 4 ), extractValue< sal_uInt… in setBiff8Data()
1714maModel.maRight.setBiffData( extractValue< sal_uInt8 >( nBorder1, 4, 4 ), extractValue< sal_uInt… in setBiff8Data()
1715maModel.maTop.setBiffData( extractValue< sal_uInt8 >( nBorder1, 8, 4 ), extractValue< sal_uInt… in setBiff8Data()
1716maModel.maBottom.setBiffData( extractValue< sal_uInt8 >( nBorder1, 12, 4 ), extractValue< sal_uInt… in setBiff8Data()
1717 maModel.mbDiagTLtoBR = getFlag( nBorder1, BIFF_XF_DIAG_TLBR ); in setBiff8Data()
1718 maModel.mbDiagBLtoTR = getFlag( nBorder1, BIFF_XF_DIAG_BLTR ); in setBiff8Data()
1719 if( maModel.mbDiagTLtoBR || maModel.mbDiagBLtoTR ) in setBiff8Data()
1720maModel.maDiagonal.setBiffData( extractValue< sal_uInt8 >( nBorder2, 21, 4 ), extractValue< sal_uI… in setBiff8Data()
1731maModel.maLeft.setBiffData( extractValue< sal_uInt8 >( nStyle, 0, 4 ), extractValue< sal_uInt16… in importCfRule()
1732maModel.maRight.setBiffData( extractValue< sal_uInt8 >( nStyle, 4, 4 ), extractValue< sal_uInt16… in importCfRule()
1733maModel.maTop.setBiffData( extractValue< sal_uInt8 >( nStyle, 8, 4 ), extractValue< sal_uInt16… in importCfRule()
1734maModel.maBottom.setBiffData( extractValue< sal_uInt8 >( nStyle, 12, 4 ), extractValue< sal_uInt16… in importCfRule()
1735 maModel.maLeft.mbUsed = !getFlag( nFlags, BIFF_CFRULE_BORDER_LEFT ); in importCfRule()
1736 maModel.maRight.mbUsed = !getFlag( nFlags, BIFF_CFRULE_BORDER_RIGHT ); in importCfRule()
1737 maModel.maTop.mbUsed = !getFlag( nFlags, BIFF_CFRULE_BORDER_TOP ); in importCfRule()
1738 maModel.maBottom.mbUsed = !getFlag( nFlags, BIFF_CFRULE_BORDER_BOTTOM ); in importCfRule()
1743 …maApiData.mbBorderUsed = maModel.maLeft.mbUsed || maModel.maRight.mbUsed || maModel.maTop.mbUsed |… in finalizeImport()
1744 maApiData.mbDiagUsed = maModel.maDiagonal.mbUsed; in finalizeImport()
1746 …ta.maBorder.IsLeftLineValid = convertBorderLine( maApiData.maBorder.LeftLine, maModel.maLeft ); in finalizeImport()
1747 …a.maBorder.IsRightLineValid = convertBorderLine( maApiData.maBorder.RightLine, maModel.maRight ); in finalizeImport()
1748 …ata.maBorder.IsTopLineValid = convertBorderLine( maApiData.maBorder.TopLine, maModel.maTop ); in finalizeImport()
1749 ….maBorder.IsBottomLineValid = convertBorderLine( maApiData.maBorder.BottomLine, maModel.maBottom ); in finalizeImport()
1762 if( maModel.mbDiagTLtoBR ) in finalizeImport()
1763 convertBorderLine( maApiData.maTLtoBR, maModel.maDiagonal ); in finalizeImport()
1764 if( maModel.mbDiagBLtoTR ) in finalizeImport()
1765 convertBorderLine( maApiData.maBLtoTR, maModel.maDiagonal ); in finalizeImport()
1783 case XLS_TOKEN( left ): return &maModel.maLeft; in getBorderLine()
1784 case XLS_TOKEN( right ): return &maModel.maRight; in getBorderLine()
1785 case XLS_TOKEN( top ): return &maModel.maTop; in getBorderLine()
1786 case XLS_TOKEN( bottom ): return &maModel.maBottom; in getBorderLine()
1787 case XLS_TOKEN( diagonal ): return &maModel.maDiagonal; in getBorderLine()
2221 maModel.mbAlignUsed = maModel.mbProtUsed = maModel.mbFontUsed = in setAllUsedFlags()
2222 maModel.mbNumFmtUsed = maModel.mbBorderUsed = maModel.mbAreaUsed = bUsed; in setAllUsedFlags()
2227 maModel.mbCellXf = bCellXf; in importXf()
2228 maModel.mnStyleXfId = rAttribs.getInteger( XML_xfId, -1 ); in importXf()
2229 maModel.mnFontId = rAttribs.getInteger( XML_fontId, -1 ); in importXf()
2230 maModel.mnNumFmtId = rAttribs.getInteger( XML_numFmtId, -1 ); in importXf()
2231 maModel.mnBorderId = rAttribs.getInteger( XML_borderId, -1 ); in importXf()
2232 maModel.mnFillId = rAttribs.getInteger( XML_fillId, -1 ); in importXf()
2236 maModel.mbAlignUsed = rAttribs.getBool( XML_applyAlignment, !maModel.mbCellXf ); in importXf()
2237 maModel.mbProtUsed = rAttribs.getBool( XML_applyProtection, !maModel.mbCellXf ); in importXf()
2238 maModel.mbFontUsed = rAttribs.getBool( XML_applyFont, !maModel.mbCellXf ); in importXf()
2239 maModel.mbNumFmtUsed = rAttribs.getBool( XML_applyNumberFormat, !maModel.mbCellXf ); in importXf()
2240 maModel.mbBorderUsed = rAttribs.getBool( XML_applyBorder, !maModel.mbCellXf ); in importXf()
2241 maModel.mbAreaUsed = rAttribs.getBool( XML_applyFill, !maModel.mbCellXf ); in importXf()
2256 maModel.mbCellXf = bCellXf; in importXf()
2257 maModel.mnStyleXfId = rStrm.readuInt16(); in importXf()
2258 maModel.mnNumFmtId = rStrm.readuInt16(); in importXf()
2259 maModel.mnFontId = rStrm.readuInt16(); in importXf()
2260 maModel.mnFillId = rStrm.readuInt16(); in importXf()
2261 maModel.mnBorderId = rStrm.readuInt16(); in importXf()
2267 maModel.mbFontUsed = maModel.mbCellXf == getFlag( nUsedFlags, BIFF12_XF_FONT_USED ); in importXf()
2268 maModel.mbNumFmtUsed = maModel.mbCellXf == getFlag( nUsedFlags, BIFF12_XF_NUMFMT_USED ); in importXf()
2269 maModel.mbAlignUsed = maModel.mbCellXf == getFlag( nUsedFlags, BIFF12_XF_ALIGN_USED ); in importXf()
2270 maModel.mbProtUsed = maModel.mbCellXf == getFlag( nUsedFlags, BIFF12_XF_PROT_USED ); in importXf()
2271 maModel.mbBorderUsed = maModel.mbCellXf == getFlag( nUsedFlags, BIFF12_XF_BORDER_USED ); in importXf()
2272 maModel.mbAreaUsed = maModel.mbCellXf == getFlag( nUsedFlags, BIFF12_XF_AREA_USED ); in importXf()
2277 BorderRef xBorder = getStyles().createBorder( &maModel.mnBorderId ); in importXf()
2278 FillRef xFill = getStyles().createFill( &maModel.mnFillId ); in importXf()
2297 maModel.mnFontId = static_cast< sal_Int32 >( nFontId ); in importXf()
2298 maModel.mnNumFmtId = static_cast< sal_Int32 >( nNumFmtId & BIFF2_XF_VALFMT_MASK ); in importXf()
2310 maModel.mbCellXf = !getFlag( nTypeProt, BIFF_XF_STYLE ); // new in BIFF3 in importXf()
2311 maModel.mnStyleXfId = extractValue< sal_Int32 >( nAlign, 4, 12 ); // new in BIFF3 in importXf()
2320 maModel.mnFontId = static_cast< sal_Int32 >( nFontId ); in importXf()
2321 maModel.mnNumFmtId = static_cast< sal_Int32 >( nNumFmtId ); in importXf()
2333 maModel.mbCellXf = !getFlag( nTypeProt, BIFF_XF_STYLE ); in importXf()
2334 maModel.mnStyleXfId = extractValue< sal_Int32 >( nTypeProt, 4, 12 ); in importXf()
2343 maModel.mnFontId = static_cast< sal_Int32 >( nFontId ); in importXf()
2344 maModel.mnNumFmtId = static_cast< sal_Int32 >( nNumFmtId ); in importXf()
2355 maModel.mbCellXf = !getFlag( nTypeProt, BIFF_XF_STYLE ); in importXf()
2356 maModel.mnStyleXfId = extractValue< sal_Int32 >( nTypeProt, 4, 12 ); in importXf()
2365 maModel.mnFontId = static_cast< sal_Int32 >( nFontId ); in importXf()
2366 maModel.mnNumFmtId = static_cast< sal_Int32 >( nNumFmtId ); in importXf()
2377 maModel.mbCellXf = !getFlag( nTypeProt, BIFF_XF_STYLE ); in importXf()
2378 maModel.mnStyleXfId = extractValue< sal_Int32 >( nTypeProt, 4, 12 ); in importXf()
2387 maModel.mnFontId = static_cast< sal_Int32 >( nFontId ); in importXf()
2388 maModel.mnNumFmtId = static_cast< sal_Int32 >( nNumFmtId ); in importXf()
2409 const Xf* pStyleXf = isCellXf() ? rStyles.getStyleXf( maModel.mnStyleXfId ).get() : 0; in finalizeImport()
2412 const XfModel& rStyleData = pStyleXf->maModel; in finalizeImport()
2413 if( !maModel.mbFontUsed ) in finalizeImport()
2414maModel.mbFontUsed = !rStyleData.mbFontUsed || (maModel.mnFontId != rStyleData.mnFontId); in finalizeImport()
2415 if( !maModel.mbNumFmtUsed ) in finalizeImport()
2416maModel.mbNumFmtUsed = !rStyleData.mbNumFmtUsed || (maModel.mnNumFmtId != rStyleData.mnNumFmtId); in finalizeImport()
2417 if( !maModel.mbAlignUsed ) in finalizeImport()
2418maModel.mbAlignUsed = !rStyleData.mbAlignUsed || !(maAlignment.getApiData() == pStyleXf->maAlignme… in finalizeImport()
2419 if( !maModel.mbProtUsed ) in finalizeImport()
2420maModel.mbProtUsed = !rStyleData.mbProtUsed || !(maProtection.getApiData() == pStyleXf->maProtecti… in finalizeImport()
2421 if( !maModel.mbBorderUsed ) in finalizeImport()
2422maModel.mbBorderUsed = !rStyleData.mbBorderUsed || !rStyles.equalBorders( maModel.mnBorderId, rSty… in finalizeImport()
2423 if( !maModel.mbAreaUsed ) in finalizeImport()
2424maModel.mbAreaUsed = !rStyleData.mbAreaUsed || !rStyles.equalFills( maModel.mnFillId, rStyleData.m… in finalizeImport()
2431 …if( const Alignment* pAlignment = maModel.mbAlignUsed ? &maAlignment : (pStyleXf ? &pStyleXf->maAl… in finalizeImport()
2433 …sal_Int32 nBorderId = maModel.mbBorderUsed ? maModel.mnBorderId : (pStyleXf ? pStyleXf->maModel.mn… in finalizeImport()
2442 return getStyles().getFont( maModel.mnFontId ); in getFont()
2448 maModel.mbAlignUsed || maModel.mbProtUsed || maModel.mbFontUsed || in hasAnyUsedFlags()
2449 maModel.mbNumFmtUsed || maModel.mbBorderUsed || maModel.mbAreaUsed; in hasAnyUsedFlags()
2458 rPropMap[ PROP_CellStyle ] <<= rStyles.createCellStyle( maModel.mnStyleXfId ); in writeToPropertyMap()
2460 if( maModel.mbFontUsed ) in writeToPropertyMap()
2461 rStyles.writeFontToPropertyMap( rPropMap, maModel.mnFontId ); in writeToPropertyMap()
2462 if( maModel.mbNumFmtUsed ) in writeToPropertyMap()
2463 rStyles.writeNumFmtToPropertyMap( rPropMap, maModel.mnNumFmtId ); in writeToPropertyMap()
2464 if( maModel.mbAlignUsed ) in writeToPropertyMap()
2466 if( maModel.mbProtUsed ) in writeToPropertyMap()
2468 if( maModel.mbBorderUsed ) in writeToPropertyMap()
2469 rStyles.writeBorderToPropertyMap( rPropMap, maModel.mnBorderId ); in writeToPropertyMap()
2470 if( maModel.mbAreaUsed ) in writeToPropertyMap()
2471 rStyles.writeFillToPropertyMap( rPropMap, maModel.mnFillId ); in writeToPropertyMap()
2472 if( maModel.mbAlignUsed || maModel.mbBorderUsed ) in writeToPropertyMap()
2498 aXf.maModel.mnFontId = extractValue< sal_Int32 >( nFlags2, 6, 2 ); in writeBiff2CellFormatToPropertySet()
2499 aXf.maModel.mnNumFmtId = extractValue< sal_Int32 >( nFlags2, 0, 6 ); in writeBiff2CellFormatToPropertySet()
2527 maModel.mbFontUsed = isCellXf() == getFlag( nUsedFlags, BIFF_XF_FONT_USED ); in setBiffUsedFlags()
2528 maModel.mbNumFmtUsed = isCellXf() == getFlag( nUsedFlags, BIFF_XF_NUMFMT_USED ); in setBiffUsedFlags()
2529 maModel.mbAlignUsed = isCellXf() == getFlag( nUsedFlags, BIFF_XF_ALIGN_USED ); in setBiffUsedFlags()
2530 maModel.mbProtUsed = isCellXf() == getFlag( nUsedFlags, BIFF_XF_PROT_USED ); in setBiffUsedFlags()
2531 maModel.mbBorderUsed = isCellXf() == getFlag( nUsedFlags, BIFF_XF_BORDER_USED ); in setBiffUsedFlags()
2532 maModel.mbAreaUsed = isCellXf() == getFlag( nUsedFlags, BIFF_XF_AREA_USED ); in setBiffUsedFlags()
2877 maModel.maName = rAttribs.getXString( XML_name, OUString() ); in importCellStyle()
2878 maModel.mnXfId = rAttribs.getInteger( XML_xfId, -1 ); in importCellStyle()
2879 maModel.mnBuiltinId = rAttribs.getInteger( XML_builtinId, -1 ); in importCellStyle()
2880 maModel.mnLevel = rAttribs.getInteger( XML_iLevel, 0 ); in importCellStyle()
2881 maModel.mbBuiltin = rAttribs.hasAttribute( XML_builtinId ); in importCellStyle()
2882 maModel.mbCustom = rAttribs.getBool( XML_customBuiltin, false ); in importCellStyle()
2883 maModel.mbHidden = rAttribs.getBool( XML_hidden, false ); in importCellStyle()
2889 rStrm >> maModel.mnXfId >> nFlags; in importCellStyle()
2890 maModel.mnBuiltinId = rStrm.readInt8(); in importCellStyle()
2891 maModel.mnLevel = rStrm.readInt8(); in importCellStyle()
2892 rStrm >> maModel.maName; in importCellStyle()
2893 maModel.mbBuiltin = getFlag( nFlags, BIFF12_CELLSTYLE_BUILTIN ); in importCellStyle()
2894 maModel.mbCustom = getFlag( nFlags, BIFF12_CELLSTYLE_CUSTOM ); in importCellStyle()
2895 maModel.mbHidden = getFlag( nFlags, BIFF12_CELLSTYLE_HIDDEN ); in importCellStyle()
2902 maModel.mnXfId = static_cast< sal_Int32 >( nStyleXf & BIFF_STYLE_XFMASK ); in importStyle()
2903 maModel.mbBuiltin = getFlag( nStyleXf, BIFF_STYLE_BUILTIN ); in importStyle()
2904 if( maModel.mbBuiltin ) in importStyle()
2906 maModel.mnBuiltinId = rStrm.readInt8(); in importStyle()
2907 maModel.mnLevel = rStrm.readInt8(); in importStyle()
2911 maModel.maName = (getBiff() == BIFF8) ? in importStyle()
2919 maModel.mbBuiltin = getFlag( nExtFlags, BIFF_STYLEEXT_BUILTIN ); in importStyle()
2920 maModel.mbCustom = getFlag( nExtFlags, BIFF_STYLEEXT_CUSTOM ); in importStyle()
2921 maModel.mbHidden = getFlag( nExtFlags, BIFF_STYLEEXT_HIDDEN ); in importStyle()
2922 if( maModel.mbBuiltin ) in importStyle()
2924 maModel.mnBuiltinId = rStrm.readInt8(); in importStyle()
2925 maModel.mnLevel = rStrm.readInt8(); in importStyle()
2956 getStyles().writeStyleXfToPropertySet( aPropSet, maModel.mnXfId ); in createCellStyle()
2957 if( !maModel.isDefaultStyle() ) in createCellStyle()
2968 if( !maModel.isBuiltin() || maModel.mbCustom ) in finalizeImport()