content.cxx (5f30f85e) content.cxx (3edf6992)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1613 unchanged lines hidden (view full) ---

1622 get() ) ),
1623 m_xImpl->getEnvironment() );
1624
1625 // Unreachable - cancelCommandExecution always throws an exception,
1626 // But some compilers complain...
1627 return sal_False;
1628}
1629
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1613 unchanged lines hidden (view full) ---

1622 get() ) ),
1623 m_xImpl->getEnvironment() );
1624
1625 // Unreachable - cancelCommandExecution always throws an exception,
1626 // But some compilers complain...
1627 return sal_False;
1628}
1629
1630//->i126305 ===============================================================
1631void Content::lock()
1632 throw( CommandAbortedException, RuntimeException, Exception )
1633{
1634 Command aCommand;
1635 aCommand.Name = rtl::OUString::createFromAscii( "lock" );
1636 aCommand.Handle = -1; // n/a
1637 // aCommand.Argument <<= aArg;
1638
1639 m_xImpl->executeCommand( aCommand );
1640
1641 // return xSink->getInputStream();
1642}
1643
1630//=========================================================================
1644//=========================================================================
1645void Content::unlock()
1646 throw( CommandAbortedException, RuntimeException, Exception )
1647{
1648
1649 // OpenCommandArgument2 aArg;
1650 //aArg.Mode = OpenMode::DOCUMENT_SHARE_DENY_NONE;
1651 //aArg.Priority = 0; // unused
1652 //aArg.Sink = xSink;
1653 //aArg.Properties = Sequence< Property >( 0 ); // unused
1654
1655 Command aCommand;
1656 aCommand.Name = rtl::OUString::createFromAscii( "unlock" );
1657 aCommand.Handle = -1; // n/a
1658 // aCommand.Argument <<= aArg;
1659
1660 m_xImpl->executeCommand( aCommand );
1661
1662}
1663//<-i126305
1664
1631//=========================================================================
1665//=========================================================================
1666//=========================================================================
1632//
1633// Content_Impl Implementation.
1634//
1635//=========================================================================
1636//=========================================================================
1637
1638Content_Impl::Content_Impl( const Reference< XMultiServiceFactory >& rSMgr,
1639 const Reference< XContent >& rContent,

--- 329 unchanged lines hidden ---
1667//
1668// Content_Impl Implementation.
1669//
1670//=========================================================================
1671//=========================================================================
1672
1673Content_Impl::Content_Impl( const Reference< XMultiServiceFactory >& rSMgr,
1674 const Reference< XContent >& rContent,

--- 329 unchanged lines hidden ---