| /************************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| *************************************************************/ |
| |
| |
| |
| // MARKER(update_precomp.py): autogen include statement, do not remove |
| #include "precompiled_sd.hxx" |
| |
| #include <unotools/localfilehelper.hxx> |
| #include <tools/errinf.hxx> |
| #include <tools/urlobj.hxx> |
| #include <vcl/msgbox.hxx> |
| #include <vcl/metaact.hxx> |
| #include <vcl/virdev.hxx> |
| #include <svtools/FilterConfigItem.hxx> |
| #include <sfx2/docfile.hxx> |
| #include <sfx2/docfilt.hxx> |
| #include <sfx2/frame.hxx> |
| #include <svx/svdograf.hxx> |
| #include <svx/svdpagv.hxx> |
| #include <svx/xoutbmp.hxx> |
| #include <osl/file.hxx> |
| |
| #include "sdpage.hxx" |
| #include "drawdoc.hxx" |
| #include "sdresid.hxx" |
| #include "sdattr.hxx" |
| #include "htmlex.hxx" |
| #include "sdhtmlfilter.hxx" |
| |
| // --------------- |
| // - SdPPTFilter - |
| // --------------- |
| |
| SdHTMLFilter::SdHTMLFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell, sal_Bool bShowProgress ) : |
| SdFilter( rMedium, rDocShell, bShowProgress ) |
| { |
| } |
| |
| // ----------------------------------------------------------------------------- |
| |
| SdHTMLFilter::~SdHTMLFilter() |
| { |
| } |
| |
| // ----------------------------------------------------------------------------- |
| |
| sal_Bool SdHTMLFilter::Export() |
| { |
| mrMedium.Close(); |
| mrMedium.Commit(); |
| |
| SfxItemSet *pSet = mrMedium.GetItemSet(); |
| |
| ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aParams; |
| |
| const SfxPoolItem* pItem; |
| if ( pSet->GetItemState( SID_FILTER_DATA, sal_False, &pItem ) == SFX_ITEM_SET ) |
| ((SfxUnoAnyItem*)pItem)->GetValue() >>= aParams; |
| |
| delete( new HtmlExport( mrMedium.GetName(), aParams, &mrDocument, &mrDocShell ) ); |
| |
| return true; |
| } |