// get a list of files from the folder of the URL // options: pExtension = 0 -> all, else this specific extension // pDateTime != 0 -> returns also the modified date/time of // the files in a std::vector<OUString> --> // !! objects must be deleted from the caller!! bool UCB_GetFileListOfFolder( const OUString& rURL,
std::vector<OUString>& rList, const OUString* pExtension,
std::vector< ::DateTime >* pDateTimeList )
{ bool bOk = false; try
{
ucbhelper::Content aCnt( rURL, css::uno::Reference< css::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() );
css::uno::Reference< css::sdbc::XResultSet > xResultSet;
// here different FillStyles can be excluded for export; it will depend on the // quality these fallbacks can reach. That again is done in getSvxBrushItemFromSourceSet, // take a look there how the superset of DrawObject FillStyles is mapped to SvxBrushItem. const drawing::FillStyle eFill = pXFillStyleItem->GetValue(); switch (eFill)
{ case drawing::FillStyle_NONE: // claim that BackColor and BackTransparent are available so that // fo:background="transparent" attribute is exported to override // the parent style in case it is != NONE switch (nMID)
{ case MID_BACK_COLOR: case MID_BACK_COLOR_R_G_B: case MID_GRAPHIC_TRANSPARENT: // this is *BackTransparent returntrue; default: returnfalse;
} break; case drawing::FillStyle_SOLID: case drawing::FillStyle_GRADIENT: // gradient and hatch don't exist in case drawing::FillStyle_HATCH: // SvxBrushItem so average color is emulated switch (nMID)
{ case MID_BACK_COLOR: case MID_GRAPHIC_TRANSPARENT: // this is *BackTransparent // Gradient/Hatch always have emulated color return (drawing::FillStyle_SOLID != eFill)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLCOLOR)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLTRANSPARENCE)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLFLOATTRANSPARENCE); case MID_BACK_COLOR_R_G_B: // Gradient/Hatch always have emulated color return (drawing::FillStyle_SOLID != eFill)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLCOLOR); case MID_BACK_COLOR_TRANSPARENCY: return SfxItemState::SET == rSet.GetItemState(XATTR_FILLTRANSPARENCE)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLFLOATTRANSPARENCE);
} break; case drawing::FillStyle_BITMAP: switch (nMID)
{ case MID_GRAPHIC: return SfxItemState::SET == rSet.GetItemState(XATTR_FILLBITMAP); case MID_GRAPHIC_POSITION: return SfxItemState::SET == rSet.GetItemState(XATTR_FILLBMP_STRETCH)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLBMP_TILE)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLBMP_POS); case MID_GRAPHIC_TRANSPARENT: case MID_GRAPHIC_TRANSPARENCY: return SfxItemState::SET == rSet.GetItemState(XATTR_FILLTRANSPARENCE)
|| SfxItemState::SET == rSet.GetItemState(XATTR_FILLFLOATTRANSPARENCE);
} break; default:
assert(false);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.