2010-10-27 07:11:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-05 14:18:35 -05:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2004-10-04 14:36:37 -05:00
|
|
|
|
|
|
|
#ifndef _SFX_GUISAVEAS_HXX_
|
|
|
|
#define _SFX_GUISAVEAS_HXX_
|
|
|
|
|
|
|
|
#include <com/sun/star/uno/Sequence.hxx>
|
|
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
|
|
|
#include <com/sun/star/beans/PropertyValue.hpp>
|
|
|
|
#include <com/sun/star/beans/NamedValue.hpp>
|
|
|
|
#include <com/sun/star/container/XNameAccess.hpp>
|
|
|
|
#include <com/sun/star/container/XContainerQuery.hpp>
|
|
|
|
#include <com/sun/star/frame/XModel.hpp>
|
2012-09-05 07:55:34 -05:00
|
|
|
#include <com/sun/star/frame/XModuleManager2.hpp>
|
2004-10-04 14:36:37 -05:00
|
|
|
|
|
|
|
#include <comphelper/sequenceashashmap.hxx>
|
2009-09-17 08:53:54 -05:00
|
|
|
#include <sfx2/signaturestate.hxx>
|
2004-10-04 14:36:37 -05:00
|
|
|
|
2008-02-26 07:56:54 -06:00
|
|
|
|
|
|
|
namespace com { namespace sun { namespace star {
|
|
|
|
namespace document {
|
2012-11-21 15:21:40 -06:00
|
|
|
class XDocumentProperties;
|
2008-02-26 07:56:54 -06:00
|
|
|
}
|
|
|
|
} } }
|
|
|
|
|
2005-11-11 05:21:54 -06:00
|
|
|
class Window;
|
2004-10-04 14:36:37 -05:00
|
|
|
class ModelData_Impl;
|
2007-07-17 07:36:28 -05:00
|
|
|
|
2004-10-04 14:36:37 -05:00
|
|
|
class SfxStoringHelper
|
|
|
|
{
|
|
|
|
friend class ModelData_Impl;
|
|
|
|
|
|
|
|
private:
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xFilterCFG;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerQuery > m_xFilterQuery;
|
2012-09-05 07:55:34 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModuleManager2 > m_xModuleManager;
|
2004-10-04 14:36:37 -05:00
|
|
|
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > GetServiceFactory();
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetFilterConfiguration();
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerQuery > GetFilterQuery();
|
2012-09-05 07:55:34 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModuleManager2 > GetModuleManager();
|
2004-10-04 14:36:37 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
SfxStoringHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
|
|
|
|
|
|
|
|
sal_Bool GUIStoreModel(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
|
|
|
|
const ::rtl::OUString& aSlotName,
|
2007-08-02 11:06:47 -05:00
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgsSequence,
|
2008-04-15 08:17:47 -05:00
|
|
|
sal_Bool bPreselectPassword,
|
2009-09-17 08:53:54 -05:00
|
|
|
::rtl::OUString aUserSelectedName,
|
|
|
|
sal_uInt16 nDocumentSignatureState = SIGNATURESTATE_NOSIGNATURES );
|
2004-10-04 14:36:37 -05:00
|
|
|
|
|
|
|
static sal_Bool CheckFilterOptionsAppearence(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& xFilterCFG,
|
|
|
|
const ::rtl::OUString& aFilterName );
|
|
|
|
|
|
|
|
|
2008-02-26 07:56:54 -06:00
|
|
|
static void SetDocInfoState(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
|
2012-11-21 15:21:40 -06:00
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::document::XDocumentProperties>& i_xOldDocInfo,
|
2008-02-26 07:56:54 -06:00
|
|
|
sal_Bool bNoModify );
|
2004-10-04 14:36:37 -05:00
|
|
|
|
|
|
|
static sal_Bool WarnUnacceptableFormat(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
|
|
|
|
::rtl::OUString aOldUIName,
|
|
|
|
::rtl::OUString aDefUIName,
|
|
|
|
sal_Bool bCanProceedFurther );
|
2005-01-21 10:32:25 -06:00
|
|
|
|
2005-11-11 05:21:54 -06:00
|
|
|
static Window* GetModelWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel );
|
|
|
|
|
2004-10-04 14:36:37 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 07:11:31 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|