com::sun::star -> css
Change-Id: I890ec73e30d3cc6b210903ecee29431f3cb5f635 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175979 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
7713d916e0
commit
1180b3473a
158 changed files with 626 additions and 649 deletions
|
@ -236,8 +236,8 @@ awt::Size SAL_CALL AccessibleBrowseBoxBase::getSize()
|
||||||
|
|
||||||
void SAL_CALL AccessibleBrowseBoxBase::focusGained( const css::awt::FocusEvent& )
|
void SAL_CALL AccessibleBrowseBoxBase::focusGained( const css::awt::FocusEvent& )
|
||||||
{
|
{
|
||||||
com::sun::star::uno::Any aFocused;
|
css::uno::Any aFocused;
|
||||||
com::sun::star::uno::Any aEmpty;
|
css::uno::Any aEmpty;
|
||||||
aFocused <<= FOCUSED;
|
aFocused <<= FOCUSED;
|
||||||
|
|
||||||
commitEvent(AccessibleEventId::STATE_CHANGED,aFocused,aEmpty);
|
commitEvent(AccessibleEventId::STATE_CHANGED,aFocused,aEmpty);
|
||||||
|
@ -246,8 +246,8 @@ void SAL_CALL AccessibleBrowseBoxBase::focusGained( const css::awt::FocusEvent&
|
||||||
|
|
||||||
void SAL_CALL AccessibleBrowseBoxBase::focusLost( const css::awt::FocusEvent& )
|
void SAL_CALL AccessibleBrowseBoxBase::focusLost( const css::awt::FocusEvent& )
|
||||||
{
|
{
|
||||||
com::sun::star::uno::Any aFocused;
|
css::uno::Any aFocused;
|
||||||
com::sun::star::uno::Any aEmpty;
|
css::uno::Any aEmpty;
|
||||||
aFocused <<= FOCUSED;
|
aFocused <<= FOCUSED;
|
||||||
|
|
||||||
commitEvent(AccessibleEventId::STATE_CHANGED,aEmpty,aFocused);
|
commitEvent(AccessibleEventId::STATE_CHANGED,aEmpty,aFocused);
|
||||||
|
|
|
@ -440,7 +440,7 @@ void VCLXAccessibleList::ProcessWindowEvent (const VclWindowEvent& rVclWindowEve
|
||||||
if (m_pListBoxHelper && (m_pListBoxHelper->GetStyle() & WB_DROPDOWN ) != WB_DROPDOWN)
|
if (m_pListBoxHelper && (m_pListBoxHelper->GetStyle() & WB_DROPDOWN ) != WB_DROPDOWN)
|
||||||
{
|
{
|
||||||
uno::Sequence<uno::Reference<css::accessibility::XAccessible>> aSequence { pBox->GetAccessible() };
|
uno::Sequence<uno::Reference<css::accessibility::XAccessible>> aSequence { pBox->GetAccessible() };
|
||||||
rRelationSet.AddRelation( com::sun::star::accessibility::AccessibleRelation( com::sun::star::accessibility::AccessibleRelationType_MEMBER_OF, aSequence ) );
|
rRelationSet.AddRelation( css::accessibility::AccessibleRelation( css::accessibility::AccessibleRelationType_MEMBER_OF, aSequence ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
namespace basegfx::utils
|
namespace basegfx::utils
|
||||||
{
|
{
|
||||||
B3DHomMatrix UnoHomogenMatrixToB3DHomMatrix(const com::sun::star::drawing::HomogenMatrix& rMatrixIn)
|
B3DHomMatrix UnoHomogenMatrixToB3DHomMatrix(const css::drawing::HomogenMatrix& rMatrixIn)
|
||||||
{
|
{
|
||||||
B3DHomMatrix aRetval;
|
B3DHomMatrix aRetval;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ B3DHomMatrix UnoHomogenMatrixToB3DHomMatrix(const com::sun::star::drawing::Homog
|
||||||
}
|
}
|
||||||
|
|
||||||
void B3DHomMatrixToUnoHomogenMatrix(const B3DHomMatrix& rMatrixIn,
|
void B3DHomMatrixToUnoHomogenMatrix(const B3DHomMatrix& rMatrixIn,
|
||||||
com::sun::star::drawing::HomogenMatrix& rMatrixOut)
|
css::drawing::HomogenMatrix& rMatrixOut)
|
||||||
{
|
{
|
||||||
rMatrixOut.Line1.Column1 = rMatrixIn.get(0, 0);
|
rMatrixOut.Line1.Column1 = rMatrixIn.get(0, 0);
|
||||||
rMatrixOut.Line1.Column2 = rMatrixIn.get(0, 1);
|
rMatrixOut.Line1.Column2 = rMatrixIn.get(0, 1);
|
||||||
|
|
|
@ -31,7 +31,7 @@ class BinaryAny {
|
||||||
public:
|
public:
|
||||||
BinaryAny() noexcept;
|
BinaryAny() noexcept;
|
||||||
|
|
||||||
BinaryAny(com::sun::star::uno::TypeDescription const & type, void * value)
|
BinaryAny(css::uno::TypeDescription const & type, void * value)
|
||||||
noexcept;
|
noexcept;
|
||||||
|
|
||||||
explicit BinaryAny(uno_Any const & raw) noexcept;
|
explicit BinaryAny(uno_Any const & raw) noexcept;
|
||||||
|
@ -50,9 +50,9 @@ public:
|
||||||
|
|
||||||
uno_Any& get() noexcept { return data_; }
|
uno_Any& get() noexcept { return data_; }
|
||||||
|
|
||||||
com::sun::star::uno::TypeDescription getType() const noexcept;
|
css::uno::TypeDescription getType() const noexcept;
|
||||||
|
|
||||||
void * getValue(com::sun::star::uno::TypeDescription const & type) const
|
void * getValue(css::uno::TypeDescription const & type) const
|
||||||
noexcept;
|
noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -165,7 +165,7 @@ void PopOutgoingRequest::clear() {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Bridge::SubStub {
|
struct Bridge::SubStub {
|
||||||
com::sun::star::uno::UnoInterfaceReference object;
|
css::uno::UnoInterfaceReference object;
|
||||||
|
|
||||||
sal_uInt32 references;
|
sal_uInt32 references;
|
||||||
};
|
};
|
||||||
|
|
|
@ -66,16 +66,14 @@ namespace binaryurp {
|
||||||
|
|
||||||
class Bridge:
|
class Bridge:
|
||||||
public cppu::WeakImplHelper<
|
public cppu::WeakImplHelper<
|
||||||
com::sun::star::bridge::XBridge, com::sun::star::lang::XComponent >
|
css::bridge::XBridge, com::sun::star::lang::XComponent >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Bridge(
|
Bridge(
|
||||||
rtl::Reference< BridgeFactory > const & factory,
|
rtl::Reference< BridgeFactory > const & factory,
|
||||||
OUString name,
|
OUString name,
|
||||||
com::sun::star::uno::Reference<
|
css::uno::Reference< css::connection::XConnection > const & connection,
|
||||||
com::sun::star::connection::XConnection > const & connection,
|
css::uno::Reference< css::bridge::XInstanceProvider > provider);
|
||||||
com::sun::star::uno::Reference<
|
|
||||||
com::sun::star::bridge::XInstanceProvider > provider);
|
|
||||||
|
|
||||||
void start();
|
void start();
|
||||||
|
|
||||||
|
@ -86,35 +84,35 @@ public:
|
||||||
// thread:
|
// thread:
|
||||||
void terminate(bool final);
|
void terminate(bool final);
|
||||||
|
|
||||||
const com::sun::star::uno::Reference< com::sun::star::connection::XConnection >&
|
const css::uno::Reference< css::connection::XConnection >&
|
||||||
getConnection() const { return connection_;}
|
getConnection() const { return connection_;}
|
||||||
|
|
||||||
const com::sun::star::uno::Reference< com::sun::star::bridge::XInstanceProvider >&
|
const css::uno::Reference< css::bridge::XInstanceProvider >&
|
||||||
getProvider() const { return provider_;}
|
getProvider() const { return provider_;}
|
||||||
|
|
||||||
com::sun::star::uno::Mapping & getCppToBinaryMapping() { return cppToBinaryMapping_;}
|
css::uno::Mapping & getCppToBinaryMapping() { return cppToBinaryMapping_;}
|
||||||
|
|
||||||
BinaryAny mapCppToBinaryAny(com::sun::star::uno::Any const & cppAny);
|
BinaryAny mapCppToBinaryAny(css::uno::Any const & cppAny);
|
||||||
|
|
||||||
uno_ThreadPool getThreadPool();
|
uno_ThreadPool getThreadPool();
|
||||||
|
|
||||||
rtl::Reference< Writer > getWriter();
|
rtl::Reference< Writer > getWriter();
|
||||||
|
|
||||||
com::sun::star::uno::UnoInterfaceReference registerIncomingInterface(
|
css::uno::UnoInterfaceReference registerIncomingInterface(
|
||||||
OUString const & oid,
|
OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type);
|
css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
OUString registerOutgoingInterface(
|
OUString registerOutgoingInterface(
|
||||||
com::sun::star::uno::UnoInterfaceReference const & object,
|
css::uno::UnoInterfaceReference const & object,
|
||||||
com::sun::star::uno::TypeDescription const & type);
|
css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
com::sun::star::uno::UnoInterfaceReference findStub(
|
css::uno::UnoInterfaceReference findStub(
|
||||||
OUString const & oid,
|
OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type);
|
css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
void releaseStub(
|
void releaseStub(
|
||||||
OUString const & oid,
|
OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type);
|
css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
void resurrectProxy(Proxy & proxy);
|
void resurrectProxy(Proxy & proxy);
|
||||||
|
|
||||||
|
@ -132,7 +130,7 @@ public:
|
||||||
|
|
||||||
bool makeCall(
|
bool makeCall(
|
||||||
OUString const & oid,
|
OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & member, bool setter,
|
css::uno::TypeDescription const & member, bool setter,
|
||||||
std::vector< BinaryAny >&& inArguments, BinaryAny * returnValue,
|
std::vector< BinaryAny >&& inArguments, BinaryAny * returnValue,
|
||||||
std::vector< BinaryAny > * outArguments);
|
std::vector< BinaryAny > * outArguments);
|
||||||
|
|
||||||
|
@ -160,7 +158,7 @@ public:
|
||||||
|
|
||||||
bool isProtocolPropertiesRequest(
|
bool isProtocolPropertiesRequest(
|
||||||
std::u16string_view oid,
|
std::u16string_view oid,
|
||||||
com::sun::star::uno::TypeDescription const & type) const;
|
css::uno::TypeDescription const & type) const;
|
||||||
|
|
||||||
void setCurrentContextMode();
|
void setCurrentContextMode();
|
||||||
|
|
||||||
|
@ -172,7 +170,7 @@ private:
|
||||||
|
|
||||||
virtual ~Bridge() override;
|
virtual ~Bridge() override;
|
||||||
|
|
||||||
virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
|
virtual css::uno::Reference< css::uno::XInterface >
|
||||||
SAL_CALL getInstance(OUString const & sInstanceName) override;
|
SAL_CALL getInstance(OUString const & sInstanceName) override;
|
||||||
|
|
||||||
virtual OUString SAL_CALL getName() override;
|
virtual OUString SAL_CALL getName() override;
|
||||||
|
@ -182,11 +180,11 @@ private:
|
||||||
virtual void SAL_CALL dispose() override;
|
virtual void SAL_CALL dispose() override;
|
||||||
|
|
||||||
virtual void SAL_CALL addEventListener(
|
virtual void SAL_CALL addEventListener(
|
||||||
com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >
|
css::uno::Reference< css::lang::XEventListener >
|
||||||
const & xListener) override;
|
const & xListener) override;
|
||||||
|
|
||||||
virtual void SAL_CALL removeEventListener(
|
virtual void SAL_CALL removeEventListener(
|
||||||
com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >
|
css::uno::Reference< css::lang::XEventListener >
|
||||||
const & aListener) override;
|
const & aListener) override;
|
||||||
|
|
||||||
// Only called from reader_ thread:
|
// Only called from reader_ thread:
|
||||||
|
@ -199,17 +197,17 @@ private:
|
||||||
|
|
||||||
void makeReleaseCall(
|
void makeReleaseCall(
|
||||||
OUString const & oid,
|
OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type);
|
css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
void sendRequest(
|
void sendRequest(
|
||||||
rtl::ByteSequence const & tid, OUString const & oid,
|
rtl::ByteSequence const & tid, OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
com::sun::star::uno::TypeDescription const & member,
|
css::uno::TypeDescription const & member,
|
||||||
std::vector< BinaryAny >&& inArguments);
|
std::vector< BinaryAny >&& inArguments);
|
||||||
|
|
||||||
void throwException(bool exception, BinaryAny const & value);
|
void throwException(bool exception, BinaryAny const & value);
|
||||||
|
|
||||||
com::sun::star::uno::Any mapBinaryToCppAny(BinaryAny const & binaryAny);
|
css::uno::Any mapBinaryToCppAny(BinaryAny const & binaryAny);
|
||||||
|
|
||||||
bool becameUnused() const;
|
bool becameUnused() const;
|
||||||
|
|
||||||
|
@ -220,13 +218,13 @@ private:
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
std::vector<
|
std::vector<
|
||||||
com::sun::star::uno::Reference<
|
css::uno::Reference<
|
||||||
com::sun::star::lang::XEventListener > >
|
css::lang::XEventListener > >
|
||||||
Listeners;
|
Listeners;
|
||||||
|
|
||||||
struct SubStub;
|
struct SubStub;
|
||||||
|
|
||||||
typedef std::map< com::sun::star::uno::TypeDescription, SubStub > Stub;
|
typedef std::map< css::uno::TypeDescription, SubStub > Stub;
|
||||||
|
|
||||||
typedef std::map< OUString, Stub > Stubs;
|
typedef std::map< OUString, Stub > Stubs;
|
||||||
|
|
||||||
|
@ -238,18 +236,18 @@ private:
|
||||||
|
|
||||||
rtl::Reference< BridgeFactory > factory_;
|
rtl::Reference< BridgeFactory > factory_;
|
||||||
OUString name_;
|
OUString name_;
|
||||||
com::sun::star::uno::Reference< com::sun::star::connection::XConnection >
|
css::uno::Reference< css::connection::XConnection >
|
||||||
connection_;
|
connection_;
|
||||||
com::sun::star::uno::Reference< com::sun::star::bridge::XInstanceProvider >
|
css::uno::Reference< css::bridge::XInstanceProvider >
|
||||||
provider_;
|
provider_;
|
||||||
com::sun::star::uno::Environment binaryUno_;
|
css::uno::Environment binaryUno_;
|
||||||
com::sun::star::uno::Mapping cppToBinaryMapping_;
|
css::uno::Mapping cppToBinaryMapping_;
|
||||||
com::sun::star::uno::Mapping binaryToCppMapping_;
|
css::uno::Mapping binaryToCppMapping_;
|
||||||
rtl::ByteSequence protPropTid_;
|
rtl::ByteSequence protPropTid_;
|
||||||
OUString protPropOid_;
|
OUString protPropOid_;
|
||||||
com::sun::star::uno::TypeDescription protPropType_;
|
css::uno::TypeDescription protPropType_;
|
||||||
com::sun::star::uno::TypeDescription protPropRequest_;
|
css::uno::TypeDescription protPropRequest_;
|
||||||
com::sun::star::uno::TypeDescription protPropCommit_;
|
css::uno::TypeDescription protPropCommit_;
|
||||||
OutgoingRequests outgoingRequests_;
|
OutgoingRequests outgoingRequests_;
|
||||||
osl::Condition passive_;
|
osl::Condition passive_;
|
||||||
// to guarantee that passive_ is eventually set (to avoid deadlock, see
|
// to guarantee that passive_ is eventually set (to avoid deadlock, see
|
||||||
|
|
|
@ -46,15 +46,15 @@ namespace binaryurp {
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
cppu::WeakComponentImplHelper<
|
cppu::WeakComponentImplHelper<
|
||||||
com::sun::star::lang::XServiceInfo,
|
css::lang::XServiceInfo,
|
||||||
com::sun::star::bridge::XBridgeFactory2 >
|
css::bridge::XBridgeFactory2 >
|
||||||
BridgeFactoryBase;
|
BridgeFactoryBase;
|
||||||
|
|
||||||
class BridgeFactory : private cppu::BaseMutex, public BridgeFactoryBase
|
class BridgeFactory : private cppu::BaseMutex, public BridgeFactoryBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void removeBridge(
|
void removeBridge(
|
||||||
com::sun::star::uno::Reference< com::sun::star::bridge::XBridge >
|
css::uno::Reference< css::bridge::XBridge >
|
||||||
const & bridge);
|
const & bridge);
|
||||||
|
|
||||||
using BridgeFactoryBase::acquire;
|
using BridgeFactoryBase::acquire;
|
||||||
|
@ -72,38 +72,34 @@ private:
|
||||||
|
|
||||||
virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
|
virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
|
||||||
|
|
||||||
virtual com::sun::star::uno::Sequence< OUString > SAL_CALL
|
virtual css::uno::Sequence< OUString > SAL_CALL
|
||||||
getSupportedServiceNames() override;
|
getSupportedServiceNames() override;
|
||||||
|
|
||||||
virtual com::sun::star::uno::Reference< com::sun::star::bridge::XBridge >
|
virtual css::uno::Reference< css::bridge::XBridge >
|
||||||
SAL_CALL createBridge(
|
SAL_CALL createBridge(
|
||||||
OUString const & sName, OUString const & sProtocol,
|
OUString const & sName, OUString const & sProtocol,
|
||||||
com::sun::star::uno::Reference<
|
css::uno::Reference< css::connection::XConnection > const & aConnection,
|
||||||
com::sun::star::connection::XConnection > const & aConnection,
|
css::uno::Reference< css::bridge::XInstanceProvider > const &
|
||||||
com::sun::star::uno::Reference<
|
|
||||||
com::sun::star::bridge::XInstanceProvider > const &
|
|
||||||
anInstanceProvider) override;
|
anInstanceProvider) override;
|
||||||
|
|
||||||
virtual com::sun::star::uno::Reference< com::sun::star::bridge::XBridge >
|
virtual css::uno::Reference< css::bridge::XBridge >
|
||||||
SAL_CALL getBridge(
|
SAL_CALL getBridge(
|
||||||
OUString const & sName) override;
|
OUString const & sName) override;
|
||||||
|
|
||||||
virtual
|
virtual
|
||||||
com::sun::star::uno::Sequence<
|
css::uno::Sequence< css::uno::Reference< css::bridge::XBridge > >
|
||||||
com::sun::star::uno::Reference< com::sun::star::bridge::XBridge > >
|
|
||||||
SAL_CALL getExistingBridges() override;
|
SAL_CALL getExistingBridges() override;
|
||||||
|
|
||||||
void SAL_CALL disposing() override;
|
void SAL_CALL disposing() override;
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
std::vector<
|
std::vector< css::uno::Reference< css::bridge::XBridge > >
|
||||||
com::sun::star::uno::Reference< com::sun::star::bridge::XBridge > >
|
|
||||||
BridgeVector;
|
BridgeVector;
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
std::map<
|
std::map<
|
||||||
OUString,
|
OUString,
|
||||||
com::sun::star::uno::Reference< com::sun::star::bridge::XBridge > >
|
css::uno::Reference< css::bridge::XBridge > >
|
||||||
BridgeMap;
|
BridgeMap;
|
||||||
|
|
||||||
BridgeVector unnamed_;
|
BridgeVector unnamed_;
|
||||||
|
|
|
@ -28,9 +28,9 @@ class UnoInterfaceReference;
|
||||||
|
|
||||||
namespace binaryurp::current_context
|
namespace binaryurp::current_context
|
||||||
{
|
{
|
||||||
com::sun::star::uno::UnoInterfaceReference get();
|
css::uno::UnoInterfaceReference get();
|
||||||
|
|
||||||
void set(com::sun::star::uno::UnoInterfaceReference const& value);
|
void set(css::uno::UnoInterfaceReference const& value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
|
|
@ -45,12 +45,12 @@ public:
|
||||||
IncomingRequest(
|
IncomingRequest(
|
||||||
rtl::Reference< Bridge > const & bridge, rtl::ByteSequence tid,
|
rtl::Reference< Bridge > const & bridge, rtl::ByteSequence tid,
|
||||||
OUString oid,
|
OUString oid,
|
||||||
com::sun::star::uno::UnoInterfaceReference object,
|
css::uno::UnoInterfaceReference object,
|
||||||
com::sun::star::uno::TypeDescription type,
|
css::uno::TypeDescription type,
|
||||||
sal_uInt16 functionId, bool synchronous,
|
sal_uInt16 functionId, bool synchronous,
|
||||||
com::sun::star::uno::TypeDescription const & member, bool setter,
|
css::uno::TypeDescription const & member, bool setter,
|
||||||
std::vector< BinaryAny >&& inArguments, bool currentContextMode,
|
std::vector< BinaryAny >&& inArguments, bool currentContextMode,
|
||||||
com::sun::star::uno::UnoInterfaceReference currentContext);
|
css::uno::UnoInterfaceReference currentContext);
|
||||||
|
|
||||||
~IncomingRequest();
|
~IncomingRequest();
|
||||||
|
|
||||||
|
@ -63,10 +63,10 @@ private:
|
||||||
rtl::Reference< Bridge > bridge_;
|
rtl::Reference< Bridge > bridge_;
|
||||||
rtl::ByteSequence tid_;
|
rtl::ByteSequence tid_;
|
||||||
OUString oid_; // initial object queryInterface; release
|
OUString oid_; // initial object queryInterface; release
|
||||||
com::sun::star::uno::UnoInterfaceReference object_;
|
css::uno::UnoInterfaceReference object_;
|
||||||
com::sun::star::uno::TypeDescription type_;
|
css::uno::TypeDescription type_;
|
||||||
com::sun::star::uno::TypeDescription member_;
|
css::uno::TypeDescription member_;
|
||||||
com::sun::star::uno::UnoInterfaceReference currentContext_;
|
css::uno::UnoInterfaceReference currentContext_;
|
||||||
std::vector< BinaryAny > inArguments_;
|
std::vector< BinaryAny > inArguments_;
|
||||||
sal_uInt16 functionId_;
|
sal_uInt16 functionId_;
|
||||||
bool synchronous_;
|
bool synchronous_;
|
||||||
|
|
|
@ -53,12 +53,12 @@ public:
|
||||||
|
|
||||||
void writeValue(
|
void writeValue(
|
||||||
std::vector< unsigned char > * buffer,
|
std::vector< unsigned char > * buffer,
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
BinaryAny const & value);
|
BinaryAny const & value);
|
||||||
|
|
||||||
void writeType(
|
void writeType(
|
||||||
std::vector< unsigned char > * buffer,
|
std::vector< unsigned char > * buffer,
|
||||||
com::sun::star::uno::TypeDescription const & value);
|
css::uno::TypeDescription const & value);
|
||||||
|
|
||||||
void writeOid(
|
void writeOid(
|
||||||
std::vector< unsigned char > * buffer, OUString const & oid);
|
std::vector< unsigned char > * buffer, OUString const & oid);
|
||||||
|
@ -72,11 +72,11 @@ private:
|
||||||
|
|
||||||
void writeValue(
|
void writeValue(
|
||||||
std::vector< unsigned char > * buffer,
|
std::vector< unsigned char > * buffer,
|
||||||
com::sun::star::uno::TypeDescription const & type, void const * value);
|
css::uno::TypeDescription const & type, void const * value);
|
||||||
|
|
||||||
void writeMemberValues(
|
void writeMemberValues(
|
||||||
std::vector< unsigned char > * buffer,
|
std::vector< unsigned char > * buffer,
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
void const * aggregateValue);
|
void const * aggregateValue);
|
||||||
|
|
||||||
rtl::Reference< Bridge > bridge_;
|
rtl::Reference< Bridge > bridge_;
|
||||||
|
|
|
@ -30,12 +30,12 @@ struct OutgoingRequest {
|
||||||
enum Kind { KIND_NORMAL, KIND_REQUEST_CHANGE, KIND_COMMIT_CHANGE };
|
enum Kind { KIND_NORMAL, KIND_REQUEST_CHANGE, KIND_COMMIT_CHANGE };
|
||||||
|
|
||||||
OutgoingRequest(
|
OutgoingRequest(
|
||||||
Kind theKind, com::sun::star::uno::TypeDescription theMember,
|
Kind theKind, css::uno::TypeDescription theMember,
|
||||||
bool theSetter):
|
bool theSetter):
|
||||||
member(std::move(theMember)), kind(theKind), setter(theSetter)
|
member(std::move(theMember)), kind(theKind), setter(theSetter)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
com::sun::star::uno::TypeDescription member;
|
css::uno::TypeDescription member;
|
||||||
|
|
||||||
Kind kind;
|
Kind kind;
|
||||||
|
|
||||||
|
|
|
@ -40,11 +40,11 @@ class Proxy: public uno_Interface {
|
||||||
public:
|
public:
|
||||||
Proxy(
|
Proxy(
|
||||||
rtl::Reference< Bridge > const & bridge, OUString oid,
|
rtl::Reference< Bridge > const & bridge, OUString oid,
|
||||||
com::sun::star::uno::TypeDescription type);
|
css::uno::TypeDescription type);
|
||||||
|
|
||||||
const OUString& getOid() const { return oid_;}
|
const OUString& getOid() const { return oid_;}
|
||||||
|
|
||||||
const com::sun::star::uno::TypeDescription& getType() const { return type_;}
|
const css::uno::TypeDescription& getType() const { return type_;}
|
||||||
|
|
||||||
void do_acquire();
|
void do_acquire();
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ public:
|
||||||
|
|
||||||
static bool isProxy(
|
static bool isProxy(
|
||||||
rtl::Reference< Bridge > const & bridge,
|
rtl::Reference< Bridge > const & bridge,
|
||||||
com::sun::star::uno::UnoInterfaceReference const & object,
|
css::uno::UnoInterfaceReference const & object,
|
||||||
OUString * oid);
|
OUString * oid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -76,7 +76,7 @@ private:
|
||||||
|
|
||||||
rtl::Reference< Bridge > bridge_;
|
rtl::Reference< Bridge > bridge_;
|
||||||
OUString oid_;
|
OUString oid_;
|
||||||
com::sun::star::uno::TypeDescription type_;
|
css::uno::TypeDescription type_;
|
||||||
std::atomic<std::size_t> references_;
|
std::atomic<std::size_t> references_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ private:
|
||||||
rtl::ByteSequence getTid(Unmarshal& unmarshal, bool newTid) const;
|
rtl::ByteSequence getTid(Unmarshal& unmarshal, bool newTid) const;
|
||||||
|
|
||||||
rtl::Reference<Bridge> bridge_;
|
rtl::Reference<Bridge> bridge_;
|
||||||
com::sun::star::uno::TypeDescription lastType_;
|
css::uno::TypeDescription lastType_;
|
||||||
OUString lastOid_;
|
OUString lastOid_;
|
||||||
rtl::ByteSequence lastTid_;
|
rtl::ByteSequence lastTid_;
|
||||||
ReaderState state_;
|
ReaderState state_;
|
||||||
|
|
|
@ -38,7 +38,7 @@ private:
|
||||||
public:
|
public:
|
||||||
ReaderState() {}
|
ReaderState() {}
|
||||||
|
|
||||||
com::sun::star::uno::TypeDescription typeCache[cache::size];
|
css::uno::TypeDescription typeCache[cache::size];
|
||||||
OUString oidCache[cache::size];
|
OUString oidCache[cache::size];
|
||||||
rtl::ByteSequence tidCache[cache::size];
|
rtl::ByteSequence tidCache[cache::size];
|
||||||
};
|
};
|
||||||
|
|
|
@ -41,7 +41,7 @@ class Unmarshal {
|
||||||
public:
|
public:
|
||||||
Unmarshal(
|
Unmarshal(
|
||||||
rtl::Reference< Bridge > bridge, ReaderState & state,
|
rtl::Reference< Bridge > bridge, ReaderState & state,
|
||||||
com::sun::star::uno::Sequence< sal_Int8 > const & buffer);
|
css::uno::Sequence< sal_Int8 > const & buffer);
|
||||||
|
|
||||||
~Unmarshal();
|
~Unmarshal();
|
||||||
|
|
||||||
|
@ -51,13 +51,13 @@ public:
|
||||||
|
|
||||||
sal_uInt32 read32();
|
sal_uInt32 read32();
|
||||||
|
|
||||||
com::sun::star::uno::TypeDescription readType();
|
css::uno::TypeDescription readType();
|
||||||
|
|
||||||
OUString readOid();
|
OUString readOid();
|
||||||
|
|
||||||
rtl::ByteSequence readTid();
|
rtl::ByteSequence readTid();
|
||||||
|
|
||||||
BinaryAny readValue(com::sun::star::uno::TypeDescription const & type);
|
BinaryAny readValue(css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
void done() const;
|
void done() const;
|
||||||
|
|
||||||
|
@ -75,15 +75,15 @@ private:
|
||||||
|
|
||||||
OUString readString();
|
OUString readString();
|
||||||
|
|
||||||
BinaryAny readSequence(com::sun::star::uno::TypeDescription const & type);
|
BinaryAny readSequence(css::uno::TypeDescription const & type);
|
||||||
|
|
||||||
void readMemberValues(
|
void readMemberValues(
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
std::vector< BinaryAny > * values);
|
std::vector< BinaryAny > * values);
|
||||||
|
|
||||||
rtl::Reference< Bridge > bridge_;
|
rtl::Reference< Bridge > bridge_;
|
||||||
ReaderState & state_;
|
ReaderState & state_;
|
||||||
com::sun::star::uno::Sequence< sal_Int8 > buffer_;
|
css::uno::Sequence< sal_Int8 > buffer_;
|
||||||
sal_uInt8 const * data_;
|
sal_uInt8 const * data_;
|
||||||
sal_uInt8 const * end_;
|
sal_uInt8 const * end_;
|
||||||
};
|
};
|
||||||
|
|
|
@ -115,7 +115,7 @@ void Writer::queueRequest(
|
||||||
|
|
||||||
void Writer::queueReply(
|
void Writer::queueReply(
|
||||||
rtl::ByteSequence const & tid,
|
rtl::ByteSequence const & tid,
|
||||||
com::sun::star::uno::TypeDescription const & member, bool setter,
|
css::uno::TypeDescription const & member, bool setter,
|
||||||
bool exception, BinaryAny const & returnValue,
|
bool exception, BinaryAny const & returnValue,
|
||||||
std::vector< BinaryAny >&& outArguments, bool setCurrentContextMode)
|
std::vector< BinaryAny >&& outArguments, bool setCurrentContextMode)
|
||||||
{
|
{
|
||||||
|
@ -342,7 +342,7 @@ void Writer::sendRequest(
|
||||||
|
|
||||||
void Writer::sendReply(
|
void Writer::sendReply(
|
||||||
rtl::ByteSequence const & tid,
|
rtl::ByteSequence const & tid,
|
||||||
com::sun::star::uno::TypeDescription const & member, bool setter,
|
css::uno::TypeDescription const & member, bool setter,
|
||||||
bool exception, BinaryAny const & returnValue,
|
bool exception, BinaryAny const & returnValue,
|
||||||
std::vector< BinaryAny > const & outArguments)
|
std::vector< BinaryAny > const & outArguments)
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,27 +50,27 @@ public:
|
||||||
// thread is unblocked:
|
// thread is unblocked:
|
||||||
void sendDirectRequest(
|
void sendDirectRequest(
|
||||||
rtl::ByteSequence const & tid, OUString const & oid,
|
rtl::ByteSequence const & tid, OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
com::sun::star::uno::TypeDescription const & member,
|
css::uno::TypeDescription const & member,
|
||||||
std::vector< BinaryAny > const & inArguments);
|
std::vector< BinaryAny > const & inArguments);
|
||||||
|
|
||||||
// Only called from Bridge::reader_ thread, and only before Bridge::writer_
|
// Only called from Bridge::reader_ thread, and only before Bridge::writer_
|
||||||
// thread is unblocked:
|
// thread is unblocked:
|
||||||
void sendDirectReply(
|
void sendDirectReply(
|
||||||
rtl::ByteSequence const & tid,
|
rtl::ByteSequence const & tid,
|
||||||
com::sun::star::uno::TypeDescription const & member,
|
css::uno::TypeDescription const & member,
|
||||||
bool exception, BinaryAny const & returnValue,
|
bool exception, BinaryAny const & returnValue,
|
||||||
std::vector< BinaryAny > const & outArguments);
|
std::vector< BinaryAny > const & outArguments);
|
||||||
|
|
||||||
void queueRequest(
|
void queueRequest(
|
||||||
rtl::ByteSequence const & tid, OUString const & oid,
|
rtl::ByteSequence const & tid, OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
com::sun::star::uno::TypeDescription const & member,
|
css::uno::TypeDescription const & member,
|
||||||
std::vector< BinaryAny >&& inArguments);
|
std::vector< BinaryAny >&& inArguments);
|
||||||
|
|
||||||
void queueReply(
|
void queueReply(
|
||||||
rtl::ByteSequence const & tid,
|
rtl::ByteSequence const & tid,
|
||||||
com::sun::star::uno::TypeDescription const & member, bool setter,
|
css::uno::TypeDescription const & member, bool setter,
|
||||||
bool exception, BinaryAny const & returnValue,
|
bool exception, BinaryAny const & returnValue,
|
||||||
std::vector< BinaryAny >&& outArguments,
|
std::vector< BinaryAny >&& outArguments,
|
||||||
bool setCurrentContextMode);
|
bool setCurrentContextMode);
|
||||||
|
@ -86,14 +86,14 @@ private:
|
||||||
|
|
||||||
void sendRequest(
|
void sendRequest(
|
||||||
rtl::ByteSequence const & tid, OUString const & oid,
|
rtl::ByteSequence const & tid, OUString const & oid,
|
||||||
com::sun::star::uno::TypeDescription const & type,
|
css::uno::TypeDescription const & type,
|
||||||
com::sun::star::uno::TypeDescription const & member,
|
css::uno::TypeDescription const & member,
|
||||||
std::vector< BinaryAny > const & inArguments, bool currentContextMode,
|
std::vector< BinaryAny > const & inArguments, bool currentContextMode,
|
||||||
com::sun::star::uno::UnoInterfaceReference const & currentContext);
|
css::uno::UnoInterfaceReference const & currentContext);
|
||||||
|
|
||||||
void sendReply(
|
void sendReply(
|
||||||
rtl::ByteSequence const & tid,
|
rtl::ByteSequence const & tid,
|
||||||
com::sun::star::uno::TypeDescription const & member, bool setter,
|
css::uno::TypeDescription const & member, bool setter,
|
||||||
bool exception, BinaryAny const & returnValue,
|
bool exception, BinaryAny const & returnValue,
|
||||||
std::vector< BinaryAny > const & outArguments);
|
std::vector< BinaryAny > const & outArguments);
|
||||||
|
|
||||||
|
@ -105,24 +105,24 @@ private:
|
||||||
// Request:
|
// Request:
|
||||||
Item(
|
Item(
|
||||||
rtl::ByteSequence theTid, OUString theOid,
|
rtl::ByteSequence theTid, OUString theOid,
|
||||||
com::sun::star::uno::TypeDescription theType,
|
css::uno::TypeDescription theType,
|
||||||
com::sun::star::uno::TypeDescription theMember,
|
css::uno::TypeDescription theMember,
|
||||||
std::vector< BinaryAny >&& inArguments,
|
std::vector< BinaryAny >&& inArguments,
|
||||||
com::sun::star::uno::UnoInterfaceReference theCurrentContext);
|
css::uno::UnoInterfaceReference theCurrentContext);
|
||||||
|
|
||||||
// Reply:
|
// Reply:
|
||||||
Item(
|
Item(
|
||||||
rtl::ByteSequence theTid,
|
rtl::ByteSequence theTid,
|
||||||
com::sun::star::uno::TypeDescription theMember,
|
css::uno::TypeDescription theMember,
|
||||||
bool theSetter, bool theException, BinaryAny theReturnValue,
|
bool theSetter, bool theException, BinaryAny theReturnValue,
|
||||||
std::vector< BinaryAny >&& outArguments,
|
std::vector< BinaryAny >&& outArguments,
|
||||||
bool theSetCurrentContextMode);
|
bool theSetCurrentContextMode);
|
||||||
|
|
||||||
rtl::ByteSequence tid; // request + reply
|
rtl::ByteSequence tid; // request + reply
|
||||||
OUString oid; // request
|
OUString oid; // request
|
||||||
com::sun::star::uno::TypeDescription type; // request
|
css::uno::TypeDescription type; // request
|
||||||
com::sun::star::uno::TypeDescription member; // request + reply
|
css::uno::TypeDescription member; // request + reply
|
||||||
com::sun::star::uno::UnoInterfaceReference currentContext; // request
|
css::uno::UnoInterfaceReference currentContext; // request
|
||||||
BinaryAny returnValue; // reply
|
BinaryAny returnValue; // reply
|
||||||
std::vector< BinaryAny > arguments; // request: inArguments; reply: outArguments
|
std::vector< BinaryAny > arguments; // request: inArguments; reply: outArguments
|
||||||
bool request;
|
bool request;
|
||||||
|
@ -134,7 +134,7 @@ private:
|
||||||
rtl::Reference< Bridge > bridge_;
|
rtl::Reference< Bridge > bridge_;
|
||||||
WriterState state_;
|
WriterState state_;
|
||||||
Marshal marshal_;
|
Marshal marshal_;
|
||||||
com::sun::star::uno::TypeDescription lastType_;
|
css::uno::TypeDescription lastType_;
|
||||||
OUString lastOid_;
|
OUString lastOid_;
|
||||||
rtl::ByteSequence lastTid_;
|
rtl::ByteSequence lastTid_;
|
||||||
osl::Condition unblocked_;
|
osl::Condition unblocked_;
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
WriterState():
|
WriterState():
|
||||||
typeCache(cache::size), oidCache(cache::size), tidCache(cache::size) {}
|
typeCache(cache::size), oidCache(cache::size), tidCache(cache::size) {}
|
||||||
|
|
||||||
Cache< com::sun::star::uno::TypeDescription > typeCache;
|
Cache< css::uno::TypeDescription > typeCache;
|
||||||
|
|
||||||
Cache< OUString > oidCache;
|
Cache< OUString > oidCache;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class CppInterfaceProxy {
|
||||||
public:
|
public:
|
||||||
// Interface for Bridge:
|
// Interface for Bridge:
|
||||||
|
|
||||||
static com::sun::star::uno::XInterface * create(
|
static css::uno::XInterface * create(
|
||||||
Bridge * pBridge, uno_Interface * pUnoI,
|
Bridge * pBridge, uno_Interface * pUnoI,
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr,
|
typelib_InterfaceTypeDescription * pTypeDescr,
|
||||||
OUString const & rOId);
|
OUString const & rOId);
|
||||||
|
@ -76,7 +76,7 @@ private:
|
||||||
|
|
||||||
~CppInterfaceProxy();
|
~CppInterfaceProxy();
|
||||||
|
|
||||||
static com::sun::star::uno::XInterface * castProxyToInterface(
|
static css::uno::XInterface * castProxyToInterface(
|
||||||
CppInterfaceProxy * pProxy);
|
CppInterfaceProxy * pProxy);
|
||||||
|
|
||||||
std::atomic<std::size_t> nRef;
|
std::atomic<std::size_t> nRef;
|
||||||
|
|
|
@ -60,21 +60,21 @@ public:
|
||||||
// Interface for Bridge:
|
// Interface for Bridge:
|
||||||
|
|
||||||
static UnoInterfaceProxy * create(
|
static UnoInterfaceProxy * create(
|
||||||
Bridge * pBridge, com::sun::star::uno::XInterface * pCppI,
|
Bridge * pBridge, css::uno::XInterface * pCppI,
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr,
|
typelib_InterfaceTypeDescription * pTypeDescr,
|
||||||
OUString const & rOId);
|
OUString const & rOId);
|
||||||
|
|
||||||
// Interface for individual CPP--UNO bridges:
|
// Interface for individual CPP--UNO bridges:
|
||||||
|
|
||||||
Bridge * getBridge() { return pBridge; }
|
Bridge * getBridge() { return pBridge; }
|
||||||
com::sun::star::uno::XInterface * getCppI() { return pCppI; }
|
css::uno::XInterface * getCppI() { return pCppI; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UnoInterfaceProxy(UnoInterfaceProxy const &) = delete;
|
UnoInterfaceProxy(UnoInterfaceProxy const &) = delete;
|
||||||
UnoInterfaceProxy& operator =(const UnoInterfaceProxy&) = delete;
|
UnoInterfaceProxy& operator =(const UnoInterfaceProxy&) = delete;
|
||||||
|
|
||||||
UnoInterfaceProxy(
|
UnoInterfaceProxy(
|
||||||
Bridge * pBridge_, com::sun::star::uno::XInterface * pCppI_,
|
Bridge * pBridge_, css::uno::XInterface * pCppI_,
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr_,
|
typelib_InterfaceTypeDescription * pTypeDescr_,
|
||||||
OUString aOId_);
|
OUString aOId_);
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ private:
|
||||||
Bridge * pBridge;
|
Bridge * pBridge;
|
||||||
|
|
||||||
// mapping information
|
// mapping information
|
||||||
com::sun::star::uno::XInterface * pCppI; // wrapped interface
|
css::uno::XInterface * pCppI; // wrapped interface
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr;
|
typelib_InterfaceTypeDescription * pTypeDescr;
|
||||||
OUString oid;
|
OUString oid;
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ void cpp2unoMapping(
|
||||||
uno_Interface * pSurrogate
|
uno_Interface * pSurrogate
|
||||||
= bridges::cpp_uno::shared::UnoInterfaceProxy::create(
|
= bridges::cpp_uno::shared::UnoInterfaceProxy::create(
|
||||||
pBridge,
|
pBridge,
|
||||||
static_cast< ::com::sun::star::uno::XInterface * >( pCppI ),
|
static_cast< css::uno::XInterface * >( pCppI ),
|
||||||
pTypeDescr, pOId );
|
pTypeDescr, pOId );
|
||||||
|
|
||||||
// proxy may be exchanged during registration
|
// proxy may be exchanged during registration
|
||||||
|
@ -100,7 +100,7 @@ void uno2cppMapping(
|
||||||
assert(ppCppI && pTypeDescr);
|
assert(ppCppI && pTypeDescr);
|
||||||
if (*ppCppI)
|
if (*ppCppI)
|
||||||
{
|
{
|
||||||
static_cast< ::com::sun::star::uno::XInterface * >( *ppCppI )->
|
static_cast< css::uno::XInterface * >( *ppCppI )->
|
||||||
release();
|
release();
|
||||||
*ppCppI = nullptr;
|
*ppCppI = nullptr;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ void uno2cppMapping(
|
||||||
if (! *ppCppI) // no existing interface, register new proxy interface
|
if (! *ppCppI) // no existing interface, register new proxy interface
|
||||||
{
|
{
|
||||||
// try to publish a new proxy (ref count initially 1)
|
// try to publish a new proxy (ref count initially 1)
|
||||||
com::sun::star::uno::XInterface * pProxy
|
css::uno::XInterface * pProxy
|
||||||
= bridges::cpp_uno::shared::CppInterfaceProxy::create(
|
= bridges::cpp_uno::shared::CppInterfaceProxy::create(
|
||||||
pBridge, static_cast< uno_Interface * >( pUnoI ),
|
pBridge, static_cast< uno_Interface * >( pUnoI ),
|
||||||
pTypeDescr, pOId );
|
pTypeDescr, pOId );
|
||||||
|
|
|
@ -78,7 +78,7 @@ static void s_stub_computeObjectIdentifier(va_list * pParam)
|
||||||
{
|
{
|
||||||
::com::sun::star::uno::Reference<
|
::com::sun::star::uno::Reference<
|
||||||
::com::sun::star::uno::XInterface > xHome(
|
::com::sun::star::uno::XInterface > xHome(
|
||||||
static_cast< ::com::sun::star::uno::XInterface * >(
|
static_cast< css::uno::XInterface * >(
|
||||||
pInterface ),
|
pInterface ),
|
||||||
::com::sun::star::uno::UNO_QUERY );
|
::com::sun::star::uno::UNO_QUERY );
|
||||||
assert(xHome.is() && "### query to XInterface failed!");
|
assert(xHome.is() && "### query to XInterface failed!");
|
||||||
|
@ -98,7 +98,7 @@ static void s_stub_computeObjectIdentifier(va_list * pParam)
|
||||||
::rtl_uString_acquire( *ppOId );
|
::rtl_uString_acquire( *ppOId );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const ::com::sun::star::uno::RuntimeException & e)
|
catch (const css::uno::RuntimeException & e)
|
||||||
{
|
{
|
||||||
SAL_WARN("bridges",
|
SAL_WARN("bridges",
|
||||||
"### RuntimeException occurred during queryInterface(): "
|
"### RuntimeException occurred during queryInterface(): "
|
||||||
|
@ -117,7 +117,7 @@ static void s_stub_acquireInterface(va_list * pParam)
|
||||||
/*uno_ExtEnvironment * pExtEnv = */va_arg(*pParam, uno_ExtEnvironment *);
|
/*uno_ExtEnvironment * pExtEnv = */va_arg(*pParam, uno_ExtEnvironment *);
|
||||||
void * pCppI = va_arg(*pParam, void *);
|
void * pCppI = va_arg(*pParam, void *);
|
||||||
|
|
||||||
static_cast< ::com::sun::star::uno::XInterface * >( pCppI )->acquire();
|
static_cast< css::uno::XInterface * >( pCppI )->acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void acquireInterface( uno_ExtEnvironment * pExtEnv, void * pCppI )
|
static void acquireInterface( uno_ExtEnvironment * pExtEnv, void * pCppI )
|
||||||
|
@ -130,7 +130,7 @@ static void s_stub_releaseInterface(va_list * pParam)
|
||||||
/*uno_ExtEnvironment * pExtEnv = */va_arg(*pParam, uno_ExtEnvironment *);
|
/*uno_ExtEnvironment * pExtEnv = */va_arg(*pParam, uno_ExtEnvironment *);
|
||||||
void * pCppI = va_arg(*pParam, void *);
|
void * pCppI = va_arg(*pParam, void *);
|
||||||
|
|
||||||
static_cast< ::com::sun::star::uno::XInterface * >( pCppI )->release();
|
static_cast< css::uno::XInterface * >( pCppI )->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void releaseInterface( uno_ExtEnvironment * pExtEnv, void * pCppI )
|
static void releaseInterface( uno_ExtEnvironment * pExtEnv, void * pCppI )
|
||||||
|
|
|
@ -54,7 +54,7 @@ void freeCppInterfaceProxy(uno_ExtEnvironment * pEnv, void * pInterface)
|
||||||
delete[] reinterpret_cast< char * >(pThis);
|
delete[] reinterpret_cast< char * >(pThis);
|
||||||
}
|
}
|
||||||
|
|
||||||
com::sun::star::uno::XInterface * CppInterfaceProxy::create(
|
css::uno::XInterface * CppInterfaceProxy::create(
|
||||||
bridges::cpp_uno::shared::Bridge * pBridge, uno_Interface * pUnoI,
|
bridges::cpp_uno::shared::Bridge * pBridge, uno_Interface * pUnoI,
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr, OUString const & rOId)
|
typelib_InterfaceTypeDescription * pTypeDescr, OUString const & rOId)
|
||||||
{
|
{
|
||||||
|
@ -122,10 +122,10 @@ CppInterfaceProxy::CppInterfaceProxy(
|
||||||
CppInterfaceProxy::~CppInterfaceProxy()
|
CppInterfaceProxy::~CppInterfaceProxy()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
com::sun::star::uno::XInterface * CppInterfaceProxy::castProxyToInterface(
|
css::uno::XInterface * CppInterfaceProxy::castProxyToInterface(
|
||||||
CppInterfaceProxy * pProxy)
|
CppInterfaceProxy * pProxy)
|
||||||
{
|
{
|
||||||
return reinterpret_cast< com::sun::star::uno::XInterface * >(
|
return reinterpret_cast< css::uno::XInterface * >(
|
||||||
&pProxy->vtables);
|
&pProxy->vtables);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ void releaseProxy(uno_Interface * pUnoI)
|
||||||
|
|
||||||
UnoInterfaceProxy * UnoInterfaceProxy::create(
|
UnoInterfaceProxy * UnoInterfaceProxy::create(
|
||||||
bridges::cpp_uno::shared::Bridge * pBridge,
|
bridges::cpp_uno::shared::Bridge * pBridge,
|
||||||
com::sun::star::uno::XInterface * pCppI,
|
css::uno::XInterface * pCppI,
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr,
|
typelib_InterfaceTypeDescription * pTypeDescr,
|
||||||
OUString const & rOId)
|
OUString const & rOId)
|
||||||
{
|
{
|
||||||
|
@ -93,7 +93,7 @@ UnoInterfaceProxy * UnoInterfaceProxy::create(
|
||||||
|
|
||||||
UnoInterfaceProxy::UnoInterfaceProxy(
|
UnoInterfaceProxy::UnoInterfaceProxy(
|
||||||
bridges::cpp_uno::shared::Bridge * pBridge_,
|
bridges::cpp_uno::shared::Bridge * pBridge_,
|
||||||
com::sun::star::uno::XInterface * pCppI_,
|
css::uno::XInterface * pCppI_,
|
||||||
typelib_InterfaceTypeDescription * pTypeDescr_, OUString aOId_)
|
typelib_InterfaceTypeDescription * pTypeDescr_, OUString aOId_)
|
||||||
: nRef( 1 )
|
: nRef( 1 )
|
||||||
, pBridge( pBridge_ )
|
, pBridge( pBridge_ )
|
||||||
|
|
|
@ -573,9 +573,9 @@ void UNO_proxy_dispatch(
|
||||||
reinterpret_cast<
|
reinterpret_cast<
|
||||||
typelib_InterfaceAttributeTypeDescription const * >(
|
typelib_InterfaceAttributeTypeDescription const * >(
|
||||||
member_td );
|
member_td );
|
||||||
com::sun::star::uno::TypeDescription attrib_holder;
|
css::uno::TypeDescription attrib_holder;
|
||||||
while ( attrib_td->pBaseRef != nullptr ) {
|
while ( attrib_td->pBaseRef != nullptr ) {
|
||||||
attrib_holder = com::sun::star::uno::TypeDescription(
|
attrib_holder = css::uno::TypeDescription(
|
||||||
attrib_td->pBaseRef );
|
attrib_td->pBaseRef );
|
||||||
assert(
|
assert(
|
||||||
attrib_holder.get()->eTypeClass
|
attrib_holder.get()->eTypeClass
|
||||||
|
@ -616,9 +616,9 @@ void UNO_proxy_dispatch(
|
||||||
reinterpret_cast<
|
reinterpret_cast<
|
||||||
typelib_InterfaceMethodTypeDescription const * >(
|
typelib_InterfaceMethodTypeDescription const * >(
|
||||||
member_td );
|
member_td );
|
||||||
com::sun::star::uno::TypeDescription method_holder;
|
css::uno::TypeDescription method_holder;
|
||||||
while ( method_td->pBaseRef != nullptr ) {
|
while ( method_td->pBaseRef != nullptr ) {
|
||||||
method_holder = com::sun::star::uno::TypeDescription(
|
method_holder = css::uno::TypeDescription(
|
||||||
method_td->pBaseRef );
|
method_td->pBaseRef );
|
||||||
assert(
|
assert(
|
||||||
method_holder.get()->eTypeClass
|
method_holder.get()->eTypeClass
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace oglcanvas
|
||||||
void setupState( const ::basegfx::B2DHomMatrix& rTransform,
|
void setupState( const ::basegfx::B2DHomMatrix& rTransform,
|
||||||
GLenum eSrcBlend,
|
GLenum eSrcBlend,
|
||||||
GLenum eDstBlend,
|
GLenum eDstBlend,
|
||||||
const com::sun::star::rendering::ARGBColor& rColor );
|
const css::rendering::ARGBColor& rColor );
|
||||||
|
|
||||||
void renderOSD( const std::vector<double>& rNumbers, double scale );
|
void renderOSD( const std::vector<double>& rNumbers, double scale );
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ private:
|
||||||
OUString impl_g_getLocation();
|
OUString impl_g_getLocation();
|
||||||
|
|
||||||
bool
|
bool
|
||||||
impl_isControllerConnected( const css::uno::Reference< com::sun::star::frame::XController >& xController );
|
impl_isControllerConnected( const css::uno::Reference< css::frame::XController >& xController );
|
||||||
|
|
||||||
/// @throws css::uno::RuntimeException
|
/// @throws css::uno::RuntimeException
|
||||||
css::uno::Reference< css::frame::XController >
|
css::uno::Reference< css::frame::XController >
|
||||||
|
@ -204,7 +204,7 @@ private:
|
||||||
const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor,
|
const css::uno::Sequence< css::beans::PropertyValue >& rMediaDescriptor,
|
||||||
const css::uno::Reference< css::embed::XStorage >& xStorage );
|
const css::uno::Reference< css::embed::XStorage >& xStorage );
|
||||||
void impl_loadGraphics(
|
void impl_loadGraphics(
|
||||||
const css::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
|
const css::uno::Reference< css::embed::XStorage >& xStorage );
|
||||||
css::uno::Reference< css::document::XFilter >
|
css::uno::Reference< css::document::XFilter >
|
||||||
impl_createFilter( const css::uno::Sequence< css::beans::PropertyValue > & rMediaDescriptor );
|
impl_createFilter( const css::uno::Sequence< css::beans::PropertyValue > & rMediaDescriptor );
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,9 @@ CPPUNIT_TEST_FIXTURE(Chart2ImportTest2, testTdf114179)
|
||||||
xDiagram.set(xChartDoc->getFirstDiagram());
|
xDiagram.set(xChartDoc->getFirstDiagram());
|
||||||
CPPUNIT_ASSERT_MESSAGE("There is a Diagram.", xDiagram.is());
|
CPPUNIT_ASSERT_MESSAGE("There is a Diagram.", xDiagram.is());
|
||||||
awt::Size aPage(0, 0);
|
awt::Size aPage(0, 0);
|
||||||
uno::Reference<com::sun::star::embed::XVisualObject> xVisualObject(xChartDoc, uno::UNO_QUERY);
|
uno::Reference<css::embed::XVisualObject> xVisualObject(xChartDoc, uno::UNO_QUERY);
|
||||||
CPPUNIT_ASSERT(xVisualObject.is());
|
CPPUNIT_ASSERT(xVisualObject.is());
|
||||||
aPage = xVisualObject->getVisualAreaSize(com::sun::star::embed::Aspects::MSOLE_CONTENT);
|
aPage = xVisualObject->getVisualAreaSize(css::embed::Aspects::MSOLE_CONTENT);
|
||||||
Reference<beans::XPropertySet> xProp(xDiagram, uno::UNO_QUERY);
|
Reference<beans::XPropertySet> xProp(xDiagram, uno::UNO_QUERY);
|
||||||
chart2::RelativeSize aRelativeSize;
|
chart2::RelativeSize aRelativeSize;
|
||||||
xProp->getPropertyValue(u"RelativeSize"_ustr) >>= aRelativeSize;
|
xProp->getPropertyValue(u"RelativeSize"_ustr) >>= aRelativeSize;
|
||||||
|
|
|
@ -1361,7 +1361,7 @@ void ChartController::executeDispatch_SourceData()
|
||||||
if ( rModel.hasInternalDataProvider() )
|
if ( rModel.hasInternalDataProvider() )
|
||||||
{
|
{
|
||||||
// Check if we will able to create data provider later
|
// Check if we will able to create data provider later
|
||||||
css::uno::Reference< com::sun::star::chart2::XDataProviderAccess > xCreatorDoc(
|
css::uno::Reference< css::chart2::XDataProviderAccess > xCreatorDoc(
|
||||||
rModel.getParent(), uno::UNO_QUERY);
|
rModel.getParent(), uno::UNO_QUERY);
|
||||||
if (!xCreatorDoc.is())
|
if (!xCreatorDoc.is())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -555,7 +555,7 @@ void ControllerCommandDispatch::updateCommandAvailability()
|
||||||
OSL_ENSURE(xChartModel.is(), "Invalid XChartDocument");
|
OSL_ENSURE(xChartModel.is(), "Invalid XChartDocument");
|
||||||
if ( xChartModel.is() )
|
if ( xChartModel.is() )
|
||||||
{
|
{
|
||||||
css::uno::Reference< com::sun::star::chart2::XDataProviderAccess > xCreatorDoc(xChartModel->getParent(), uno::UNO_QUERY);
|
css::uno::Reference< css::chart2::XDataProviderAccess > xCreatorDoc(xChartModel->getParent(), uno::UNO_QUERY);
|
||||||
bCanCreateDataProvider = xCreatorDoc.is();
|
bCanCreateDataProvider = xCreatorDoc.is();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,9 +40,7 @@ public:
|
||||||
|
|
||||||
~ModifyListenerCallBack();
|
~ModifyListenerCallBack();
|
||||||
|
|
||||||
void startListening(
|
void startListening(const css::uno::Reference<css::util::XModifyBroadcaster>& xBroadcaster);
|
||||||
const ::com::sun::star::uno::Reference<::com::sun::star::util::XModifyBroadcaster>&
|
|
||||||
xBroadcaster);
|
|
||||||
SAL_DLLPRIVATE void stopListening();
|
SAL_DLLPRIVATE void stopListening();
|
||||||
|
|
||||||
private: //methods
|
private: //methods
|
||||||
|
|
|
@ -67,7 +67,7 @@ void SAL_CALL ModifyListenerCallBack_impl::disposing( const lang::EventObject& /
|
||||||
m_xBroadcaster.clear();
|
m_xBroadcaster.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModifyListenerCallBack_impl::startListening( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyBroadcaster >& xBroadcaster )
|
void ModifyListenerCallBack_impl::startListening( const css::uno::Reference< css::util::XModifyBroadcaster >& xBroadcaster )
|
||||||
{
|
{
|
||||||
if( m_xBroadcaster == xBroadcaster )
|
if( m_xBroadcaster == xBroadcaster )
|
||||||
return;
|
return;
|
||||||
|
@ -97,7 +97,7 @@ ModifyListenerCallBack::~ModifyListenerCallBack()
|
||||||
stopListening();
|
stopListening();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModifyListenerCallBack::startListening( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyBroadcaster >& xBroadcaster )
|
void ModifyListenerCallBack::startListening( const css::uno::Reference< css::util::XModifyBroadcaster >& xBroadcaster )
|
||||||
{
|
{
|
||||||
pModifyListener_impl->startListening( xBroadcaster );
|
pModifyListener_impl->startListening( xBroadcaster );
|
||||||
}
|
}
|
||||||
|
|
|
@ -446,7 +446,7 @@ void lcl_setDefaultWritingMode( const std::shared_ptr< DrawModelWrapper >& pDraw
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Calc is parent document
|
//Calc is parent document
|
||||||
Reference< com::sun::star::beans::XPropertySetInfo > xInfo = xParentProps->getPropertySetInfo();
|
Reference< css::beans::XPropertySetInfo > xInfo = xParentProps->getPropertySetInfo();
|
||||||
if (xInfo->hasPropertyByName(u"PageStyle"_ustr))
|
if (xInfo->hasPropertyByName(u"PageStyle"_ustr))
|
||||||
{
|
{
|
||||||
xParentProps->getPropertyValue( u"PageStyle"_ustr ) >>= aPageStyle;
|
xParentProps->getPropertyValue( u"PageStyle"_ustr ) >>= aPageStyle;
|
||||||
|
@ -457,7 +457,7 @@ void lcl_setDefaultWritingMode( const std::shared_ptr< DrawModelWrapper >& pDraw
|
||||||
if( nWritingMode == -1 || nWritingMode == text::WritingMode2::PAGE )
|
if( nWritingMode == -1 || nWritingMode == text::WritingMode2::PAGE )
|
||||||
{
|
{
|
||||||
uno::Reference< beans::XPropertySet > xPageStyle( xPageStyles->getByName( aPageStyle ), uno::UNO_QUERY );
|
uno::Reference< beans::XPropertySet > xPageStyle( xPageStyles->getByName( aPageStyle ), uno::UNO_QUERY );
|
||||||
Reference< com::sun::star::beans::XPropertySetInfo > xInfo = xPageStyle->getPropertySetInfo();
|
Reference< css::beans::XPropertySetInfo > xInfo = xPageStyle->getPropertySetInfo();
|
||||||
if (xInfo->hasPropertyByName(u"WritingMode"_ustr))
|
if (xInfo->hasPropertyByName(u"WritingMode"_ustr))
|
||||||
{
|
{
|
||||||
if( xPageStyle.is() )
|
if( xPageStyle.is() )
|
||||||
|
|
|
@ -836,7 +836,7 @@ Symbol* VDataSeries::getSymbolProperties( sal_Int32 index ) const
|
||||||
m_oSymbolProperties_InvisibleSymbolForSelection.emplace();
|
m_oSymbolProperties_InvisibleSymbolForSelection.emplace();
|
||||||
m_oSymbolProperties_InvisibleSymbolForSelection->Style = SymbolStyle_STANDARD;
|
m_oSymbolProperties_InvisibleSymbolForSelection->Style = SymbolStyle_STANDARD;
|
||||||
m_oSymbolProperties_InvisibleSymbolForSelection->StandardSymbol = 0;//square
|
m_oSymbolProperties_InvisibleSymbolForSelection->StandardSymbol = 0;//square
|
||||||
m_oSymbolProperties_InvisibleSymbolForSelection->Size = com::sun::star::awt::Size(0, 0);//tdf#126033
|
m_oSymbolProperties_InvisibleSymbolForSelection->Size = css::awt::Size(0, 0);//tdf#126033
|
||||||
m_oSymbolProperties_InvisibleSymbolForSelection->BorderColor = 0xff000000;//invisible
|
m_oSymbolProperties_InvisibleSymbolForSelection->BorderColor = 0xff000000;//invisible
|
||||||
m_oSymbolProperties_InvisibleSymbolForSelection->FillColor = 0xff000000;//invisible
|
m_oSymbolProperties_InvisibleSymbolForSelection->FillColor = 0xff000000;//invisible
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,12 +45,12 @@ void extract(
|
||||||
const& xErrorContext )
|
const& xErrorContext )
|
||||||
{
|
{
|
||||||
if (nArg >= seq.getLength()) {
|
if (nArg >= seq.getLength()) {
|
||||||
throw ::com::sun::star::lang::IllegalArgumentException(
|
throw css::lang::IllegalArgumentException(
|
||||||
u"No such argument available!"_ustr,
|
u"No such argument available!"_ustr,
|
||||||
xErrorContext, static_cast<sal_Int16>(nArg) );
|
xErrorContext, static_cast<sal_Int16>(nArg) );
|
||||||
}
|
}
|
||||||
if (! fromAny(seq[nArg], &v)) {
|
if (! fromAny(seq[nArg], &v)) {
|
||||||
throw ::com::sun::star::lang::IllegalArgumentException(
|
throw css::lang::IllegalArgumentException(
|
||||||
"Cannot extract ANY { "
|
"Cannot extract ANY { "
|
||||||
+ seq[nArg].getValueTypeName()
|
+ seq[nArg].getValueTypeName()
|
||||||
+ " } to " + ::cppu::UnoType<T>::get().getTypeName(),
|
+ " } to " + ::cppu::UnoType<T>::get().getTypeName(),
|
||||||
|
@ -136,7 +136,7 @@ void VariadicTemplatesTest::testUnwrapArgs() {
|
||||||
CPPUNIT_ASSERT_MESSAGE( "seq1 and seq2 are equal",
|
CPPUNIT_ASSERT_MESSAGE( "seq1 and seq2 are equal",
|
||||||
bool(seq1 == seq2) );
|
bool(seq1 == seq2) );
|
||||||
}
|
}
|
||||||
catch( ::com::sun::star::lang::IllegalArgumentException& err ) {
|
catch( css::lang::IllegalArgumentException& err ) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "IllegalArgumentException when unwrapping arguments at: " <<
|
ss << "IllegalArgumentException when unwrapping arguments at: " <<
|
||||||
err.ArgumentPosition;
|
err.ArgumentPosition;
|
||||||
|
@ -149,7 +149,7 @@ void VariadicTemplatesTest::testUnwrapArgs() {
|
||||||
static_cast< sal_uInt32 >( 4 ) );
|
static_cast< sal_uInt32 >( 4 ) );
|
||||||
::comphelper::unwrapArgs( seq, tmp6, tmp7, tmp10, tmp11, tmp10, tmp6 );
|
::comphelper::unwrapArgs( seq, tmp6, tmp7, tmp10, tmp11, tmp10, tmp6 );
|
||||||
}
|
}
|
||||||
catch( ::com::sun::star::lang::IllegalArgumentException& err ) {
|
catch( css::lang::IllegalArgumentException& err ) {
|
||||||
CPPUNIT_ASSERT_EQUAL( static_cast< short >( 5 ), err.ArgumentPosition );
|
CPPUNIT_ASSERT_EQUAL( static_cast< short >( 5 ), err.ArgumentPosition );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,14 +164,14 @@ void VariadicTemplatesTest::testUnwrapArgs() {
|
||||||
static_cast< sal_uInt32 >( 4 ) );
|
static_cast< sal_uInt32 >( 4 ) );
|
||||||
::comphelper::unwrapArgs( seq, test1, test2, test3, test4, test5 );
|
::comphelper::unwrapArgs( seq, test1, test2, test3, test4, test5 );
|
||||||
}
|
}
|
||||||
catch( ::com::sun::star::lang::IllegalArgumentException& err1 ) {
|
catch( css::lang::IllegalArgumentException& err1 ) {
|
||||||
try {
|
try {
|
||||||
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > seq(
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > seq(
|
||||||
static_cast< sal_uInt32 >( 4 ) );
|
static_cast< sal_uInt32 >( 4 ) );
|
||||||
unwrapArgsBaseline( seq, test1, test2, test3, test4, test5 );
|
unwrapArgsBaseline( seq, test1, test2, test3, test4, test5 );
|
||||||
CPPUNIT_FAIL( "unwrapArgs failed while the baseline did not throw" );
|
CPPUNIT_FAIL( "unwrapArgs failed while the baseline did not throw" );
|
||||||
}
|
}
|
||||||
catch( ::com::sun::star::lang::IllegalArgumentException& err2 ) {
|
catch( css::lang::IllegalArgumentException& err2 ) {
|
||||||
CPPUNIT_ASSERT_EQUAL_MESSAGE( "err1.ArgumentPosition == err2.ArgumentPosition",
|
CPPUNIT_ASSERT_EQUAL_MESSAGE( "err1.ArgumentPosition == err2.ArgumentPosition",
|
||||||
err1.ArgumentPosition, err2.ArgumentPosition );
|
err1.ArgumentPosition, err2.ArgumentPosition );
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ FontDescriptor getDefaultFont()
|
||||||
FontDescriptor aReturn;
|
FontDescriptor aReturn;
|
||||||
aReturn.Slant = FontSlant_DONTKNOW;
|
aReturn.Slant = FontSlant_DONTKNOW;
|
||||||
aReturn.Underline = FontUnderline::DONTKNOW;
|
aReturn.Underline = FontUnderline::DONTKNOW;
|
||||||
aReturn.Strikeout = com::sun::star::awt::FontStrikeout::DONTKNOW;
|
aReturn.Strikeout = css::awt::FontStrikeout::DONTKNOW;
|
||||||
return aReturn;
|
return aReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace connectivity::firebird
|
||||||
css::uno::Reference< css::sdbc::XDatabaseMetaData >
|
css::uno::Reference< css::sdbc::XDatabaseMetaData >
|
||||||
m_xMetaData;
|
m_xMetaData;
|
||||||
|
|
||||||
static OUString createStandardColumnPart(const css::uno::Reference< css::beans::XPropertySet >& xColProp,const css::uno::Reference< com::sun::star::sdbc::XConnection>& _xConnection);
|
static OUString createStandardColumnPart(const css::uno::Reference< css::beans::XPropertySet >& xColProp,const css::uno::Reference< css::sdbc::XConnection>& _xConnection);
|
||||||
|
|
||||||
// OCollection
|
// OCollection
|
||||||
virtual void impl_refresh() override;
|
virtual void impl_refresh() override;
|
||||||
|
|
|
@ -29,14 +29,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ------------- MySQL-Type: BIT. SDBC-Type: Bit -------------
|
// ------------- MySQL-Type: BIT. SDBC-Type: Bit -------------
|
||||||
{
|
{
|
||||||
"BIT", // Typename
|
"BIT", // Typename
|
||||||
com::sun::star::sdbc::DataType::BIT, // sdbc-type
|
css::sdbc::DataType::BIT, // sdbc-type
|
||||||
1, // Precision
|
1, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -48,14 +48,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ------------ MySQL-Type: BOOL. SDBC-Type: Bit -------------
|
// ------------ MySQL-Type: BOOL. SDBC-Type: Bit -------------
|
||||||
{
|
{
|
||||||
"BOOL", // Typename
|
"BOOL", // Typename
|
||||||
com::sun::star::sdbc::DataType::BIT, // sdbc-type
|
css::sdbc::DataType::BIT, // sdbc-type
|
||||||
1, // Precision
|
1, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -67,14 +67,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// --------- MySQL-Type: TINYINT SDBC-Type: TINYINT ----------
|
// --------- MySQL-Type: TINYINT SDBC-Type: TINYINT ----------
|
||||||
{
|
{
|
||||||
"TINYINT", // Typename
|
"TINYINT", // Typename
|
||||||
com::sun::star::sdbc::DataType::TINYINT, // sdbc-type
|
css::sdbc::DataType::TINYINT, // sdbc-type
|
||||||
3, // Precision
|
3, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -86,14 +86,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: BIGINT SDBC-Type: BIGINT ----------
|
// ----------- MySQL-Type: BIGINT SDBC-Type: BIGINT ----------
|
||||||
{
|
{
|
||||||
"BIGINT", // Typename
|
"BIGINT", // Typename
|
||||||
com::sun::star::sdbc::DataType::BIGINT, // sdbc-type
|
css::sdbc::DataType::BIGINT, // sdbc-type
|
||||||
19, // Precision
|
19, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -105,14 +105,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: LONG VARBINARY SDBC-Type: LONGVARBINARY ----------
|
// ----------- MySQL-Type: LONG VARBINARY SDBC-Type: LONGVARBINARY ----------
|
||||||
{
|
{
|
||||||
"LONG VARBINARY", // Typename
|
"LONG VARBINARY", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
css::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
||||||
16777215, // Precision
|
16777215, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -124,14 +124,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: MEDIUMBLOB SDBC-Type: LONGVARBINARY ----------
|
// ----------- MySQL-Type: MEDIUMBLOB SDBC-Type: LONGVARBINARY ----------
|
||||||
{
|
{
|
||||||
"MEDIUMBLOB", // Typename
|
"MEDIUMBLOB", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
css::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
||||||
16777215, // Precision
|
16777215, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -143,14 +143,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: LONGBLOB SDBC-Type: LONGVARBINARY ----------
|
// ----------- MySQL-Type: LONGBLOB SDBC-Type: LONGVARBINARY ----------
|
||||||
{
|
{
|
||||||
"LONGBLOB", // Typename
|
"LONGBLOB", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
css::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
||||||
-1, // Precision
|
-1, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -162,14 +162,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: BLOB SDBC-Type: LONGVARBINARY ----------
|
// ----------- MySQL-Type: BLOB SDBC-Type: LONGVARBINARY ----------
|
||||||
{
|
{
|
||||||
"BLOB", // Typename
|
"BLOB", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
css::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
||||||
0xFFFF, // Precision
|
0xFFFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -181,14 +181,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: TINYBLOB SDBC-Type: LONGVARBINARY ----------
|
// ----------- MySQL-Type: TINYBLOB SDBC-Type: LONGVARBINARY ----------
|
||||||
{
|
{
|
||||||
"TINYBLOB", // Typename
|
"TINYBLOB", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
css::sdbc::DataType::LONGVARBINARY, // sdbc-type
|
||||||
0xFF, // Precision
|
0xFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -200,14 +200,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: VARBINARY SDBC-Type: VARBINARY ----------
|
// ----------- MySQL-Type: VARBINARY SDBC-Type: VARBINARY ----------
|
||||||
{
|
{
|
||||||
"VARBINARY", // Typename
|
"VARBINARY", // Typename
|
||||||
com::sun::star::sdbc::DataType::VARBINARY, // sdbc-type
|
css::sdbc::DataType::VARBINARY, // sdbc-type
|
||||||
0xFF, // Precision
|
0xFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"(M)", // Create params
|
"(M)", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -219,14 +219,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: BINARY SDBC-Type: BINARY ----------
|
// ----------- MySQL-Type: BINARY SDBC-Type: BINARY ----------
|
||||||
{
|
{
|
||||||
"BINARY", // Typename
|
"BINARY", // Typename
|
||||||
com::sun::star::sdbc::DataType::BINARY, // sdbc-type
|
css::sdbc::DataType::BINARY, // sdbc-type
|
||||||
0xFF, // Precision
|
0xFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"(M)", // Create params
|
"(M)", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
true, // case sensitive
|
true, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -238,14 +238,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: LONG VARCHAR SDBC-Type: LONG VARCHAR ----------
|
// ----------- MySQL-Type: LONG VARCHAR SDBC-Type: LONG VARCHAR ----------
|
||||||
{
|
{
|
||||||
"LONG VARCHAR", // Typename
|
"LONG VARCHAR", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
css::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
||||||
0xFFFFFF, // Precision
|
0xFFFFFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -257,14 +257,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: MEDIUMTEXT SDBC-Type: LONG VARCHAR ----------
|
// ----------- MySQL-Type: MEDIUMTEXT SDBC-Type: LONG VARCHAR ----------
|
||||||
{
|
{
|
||||||
"MEDIUMTEXT", // Typename
|
"MEDIUMTEXT", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
css::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
||||||
0xFFFFFF, // Precision
|
0xFFFFFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -276,14 +276,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: LONGTEXT SDBC-Type: LONG VARCHAR ----------
|
// ----------- MySQL-Type: LONGTEXT SDBC-Type: LONG VARCHAR ----------
|
||||||
{
|
{
|
||||||
"LONGTEXT", // Typename
|
"LONGTEXT", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
css::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
||||||
0xFFFFFF, // Precision
|
0xFFFFFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -295,14 +295,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: TEXT SDBC-Type: LONG VARCHAR ----------
|
// ----------- MySQL-Type: TEXT SDBC-Type: LONG VARCHAR ----------
|
||||||
{
|
{
|
||||||
"TEXT", // Typename
|
"TEXT", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
css::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
||||||
0xFFFF, // Precision
|
0xFFFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -314,14 +314,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: TINYTEXT SDBC-Type: LONG VARCHAR ----------
|
// ----------- MySQL-Type: TINYTEXT SDBC-Type: LONG VARCHAR ----------
|
||||||
{
|
{
|
||||||
"TINYTEXT", // Typename
|
"TINYTEXT", // Typename
|
||||||
com::sun::star::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
css::sdbc::DataType::LONGVARCHAR, // sdbc-type
|
||||||
0xFF, // Precision
|
0xFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -333,14 +333,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: CHAR SDBC-Type: CHAR ----------
|
// ----------- MySQL-Type: CHAR SDBC-Type: CHAR ----------
|
||||||
{
|
{
|
||||||
"CHAR", // Typename
|
"CHAR", // Typename
|
||||||
com::sun::star::sdbc::DataType::CHAR, // sdbc-type
|
css::sdbc::DataType::CHAR, // sdbc-type
|
||||||
0xFF, // Precision
|
0xFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"(M)", // Create params
|
"(M)", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -352,14 +352,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: DECIMAL SDBC-Type: DECIMAL ----------
|
// ----------- MySQL-Type: DECIMAL SDBC-Type: DECIMAL ----------
|
||||||
{
|
{
|
||||||
"DECIMAL", // Typename
|
"DECIMAL", // Typename
|
||||||
com::sun::star::sdbc::DataType::DECIMAL, // sdbc-type
|
css::sdbc::DataType::DECIMAL, // sdbc-type
|
||||||
17, // Precision
|
17, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M[,D])] [ZEROFILL]", // Create params
|
"[(M[,D])] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -371,14 +371,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: NUMERIC SDBC-Type: NUMERIC ----------
|
// ----------- MySQL-Type: NUMERIC SDBC-Type: NUMERIC ----------
|
||||||
{
|
{
|
||||||
"NUMERIC", // Typename
|
"NUMERIC", // Typename
|
||||||
com::sun::star::sdbc::DataType::NUMERIC, // sdbc-type
|
css::sdbc::DataType::NUMERIC, // sdbc-type
|
||||||
17, // Precision
|
17, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M[,D])] [ZEROFILL]", // Create params
|
"[(M[,D])] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -390,14 +390,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: INTEGER SDBC-Type: INTEGER ----------
|
// ----------- MySQL-Type: INTEGER SDBC-Type: INTEGER ----------
|
||||||
{
|
{
|
||||||
"INTEGER", // Typename
|
"INTEGER", // Typename
|
||||||
com::sun::star::sdbc::DataType::INTEGER, // sdbc-type
|
css::sdbc::DataType::INTEGER, // sdbc-type
|
||||||
10, // Precision
|
10, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -409,14 +409,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: INT SDBC-Type: INTEGER ----------
|
// ----------- MySQL-Type: INT SDBC-Type: INTEGER ----------
|
||||||
{
|
{
|
||||||
"INT", // Typename
|
"INT", // Typename
|
||||||
com::sun::star::sdbc::DataType::INTEGER, // sdbc-type
|
css::sdbc::DataType::INTEGER, // sdbc-type
|
||||||
10, // Precision
|
10, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -428,14 +428,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: MEDIUMINT SDBC-Type: INTEGER ----------
|
// ----------- MySQL-Type: MEDIUMINT SDBC-Type: INTEGER ----------
|
||||||
{
|
{
|
||||||
"MEDIUMINT", // Typename
|
"MEDIUMINT", // Typename
|
||||||
com::sun::star::sdbc::DataType::INTEGER, // sdbc-type
|
css::sdbc::DataType::INTEGER, // sdbc-type
|
||||||
7, // Precision
|
7, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -447,14 +447,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: SMALLINT SDBC-Type: INTEGER ----------
|
// ----------- MySQL-Type: SMALLINT SDBC-Type: INTEGER ----------
|
||||||
{
|
{
|
||||||
"SMALLINT", // Typename
|
"SMALLINT", // Typename
|
||||||
com::sun::star::sdbc::DataType::SMALLINT, // sdbc-type
|
css::sdbc::DataType::SMALLINT, // sdbc-type
|
||||||
5, // Precision
|
5, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -466,14 +466,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: FLOAT SDBC-Type: REAL ----------
|
// ----------- MySQL-Type: FLOAT SDBC-Type: REAL ----------
|
||||||
{
|
{
|
||||||
"FLOAT", // Typename
|
"FLOAT", // Typename
|
||||||
com::sun::star::sdbc::DataType::REAL, // sdbc-type
|
css::sdbc::DataType::REAL, // sdbc-type
|
||||||
10, // Precision
|
10, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M,D)] [ZEROFILL]", // Create params
|
"[(M,D)] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -485,14 +485,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: DOUBLE SDBC-Type: DOUBLE ----------
|
// ----------- MySQL-Type: DOUBLE SDBC-Type: DOUBLE ----------
|
||||||
{
|
{
|
||||||
"DOUBLE", // Typename
|
"DOUBLE", // Typename
|
||||||
com::sun::star::sdbc::DataType::DOUBLE, // sdbc-type
|
css::sdbc::DataType::DOUBLE, // sdbc-type
|
||||||
17, // Precision
|
17, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M,D)] [ZEROFILL]", // Create params
|
"[(M,D)] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -504,14 +504,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: DOUBLE PRECISION SDBC-Type: DOUBLE ----------
|
// ----------- MySQL-Type: DOUBLE PRECISION SDBC-Type: DOUBLE ----------
|
||||||
{
|
{
|
||||||
"DOUBLE PRECISION", // Typename
|
"DOUBLE PRECISION", // Typename
|
||||||
com::sun::star::sdbc::DataType::DOUBLE, // sdbc-type
|
css::sdbc::DataType::DOUBLE, // sdbc-type
|
||||||
17, // Precision
|
17, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M,D)] [ZEROFILL]", // Create params
|
"[(M,D)] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -523,14 +523,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: REAL SDBC-Type: DOUBLE ----------
|
// ----------- MySQL-Type: REAL SDBC-Type: DOUBLE ----------
|
||||||
{
|
{
|
||||||
"REAL", // Typename
|
"REAL", // Typename
|
||||||
com::sun::star::sdbc::DataType::DOUBLE, // sdbc-type
|
css::sdbc::DataType::DOUBLE, // sdbc-type
|
||||||
17, // Precision
|
17, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M,D)] [ZEROFILL]", // Create params
|
"[(M,D)] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
@ -542,14 +542,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: VARCHAR SDBC-Type: VARCHAR ----------
|
// ----------- MySQL-Type: VARCHAR SDBC-Type: VARCHAR ----------
|
||||||
{
|
{
|
||||||
"VARCHAR", // Typename
|
"VARCHAR", // Typename
|
||||||
com::sun::star::sdbc::DataType::VARCHAR, // sdbc-type
|
css::sdbc::DataType::VARCHAR, // sdbc-type
|
||||||
255, // Precision
|
255, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"(M)", // Create params
|
"(M)", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -561,14 +561,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: ENUM SDBC-Type: VARCHAR ----------
|
// ----------- MySQL-Type: ENUM SDBC-Type: VARCHAR ----------
|
||||||
{
|
{
|
||||||
"ENUM", // Typename
|
"ENUM", // Typename
|
||||||
com::sun::star::sdbc::DataType::VARCHAR, // sdbc-type
|
css::sdbc::DataType::VARCHAR, // sdbc-type
|
||||||
0xFFFF, // Precision
|
0xFFFF, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -580,14 +580,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: SET SDBC-Type: VARCHAR ----------
|
// ----------- MySQL-Type: SET SDBC-Type: VARCHAR ----------
|
||||||
{
|
{
|
||||||
"SET", // Typename
|
"SET", // Typename
|
||||||
com::sun::star::sdbc::DataType::VARCHAR, // sdbc-type
|
css::sdbc::DataType::VARCHAR, // sdbc-type
|
||||||
64, // Precision
|
64, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -599,14 +599,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: DATE SDBC-Type: DATE ----------
|
// ----------- MySQL-Type: DATE SDBC-Type: DATE ----------
|
||||||
{
|
{
|
||||||
"DATE", // Typename
|
"DATE", // Typename
|
||||||
com::sun::star::sdbc::DataType::DATE, // sdbc-type
|
css::sdbc::DataType::DATE, // sdbc-type
|
||||||
0, // Precision
|
0, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -618,14 +618,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: TIME SDBC-Type: TIME ----------
|
// ----------- MySQL-Type: TIME SDBC-Type: TIME ----------
|
||||||
{
|
{
|
||||||
"TIME", // Typename
|
"TIME", // Typename
|
||||||
com::sun::star::sdbc::DataType::TIME, // sdbc-type
|
css::sdbc::DataType::TIME, // sdbc-type
|
||||||
0, // Precision
|
0, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -637,14 +637,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: DATETIME SDBC-Type: TIMESTAMP ----------
|
// ----------- MySQL-Type: DATETIME SDBC-Type: TIMESTAMP ----------
|
||||||
{
|
{
|
||||||
"DATETIME", // Typename
|
"DATETIME", // Typename
|
||||||
com::sun::star::sdbc::DataType::TIMESTAMP, // sdbc-type
|
css::sdbc::DataType::TIMESTAMP, // sdbc-type
|
||||||
0, // Precision
|
0, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"", // Create params
|
"", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -656,14 +656,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: TIMESTAMP SDBC-Type: TIMESTAMP ----------
|
// ----------- MySQL-Type: TIMESTAMP SDBC-Type: TIMESTAMP ----------
|
||||||
{
|
{
|
||||||
"TIMESTAMP", // Typename
|
"TIMESTAMP", // Typename
|
||||||
com::sun::star::sdbc::DataType::TIMESTAMP, // sdbc-type
|
css::sdbc::DataType::TIMESTAMP, // sdbc-type
|
||||||
0, // Precision
|
0, // Precision
|
||||||
"'", // Literal prefix
|
"'", // Literal prefix
|
||||||
"'", // Literal suffix
|
"'", // Literal suffix
|
||||||
"[(M)]", // Create params
|
"[(M)]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
false, // unsignable
|
false, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
false, // auto_increment
|
false, // auto_increment
|
||||||
|
@ -677,14 +677,14 @@ TypeInfoDef const mysqlc_types[] = {
|
||||||
// ----------- MySQL-Type: YEAR SDBC-Type: INTEGER ----------
|
// ----------- MySQL-Type: YEAR SDBC-Type: INTEGER ----------
|
||||||
{
|
{
|
||||||
"YEAR", // Typename
|
"YEAR", // Typename
|
||||||
com::sun::star::sdbc::DataType::SMALLINT, // sdbc-type
|
css::sdbc::DataType::SMALLINT, // sdbc-type
|
||||||
10, // Precision
|
10, // Precision
|
||||||
"", // Literal prefix
|
"", // Literal prefix
|
||||||
"", // Literal suffix
|
"", // Literal suffix
|
||||||
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
"[(M)] [UNSIGNED] [ZEROFILL]", // Create params
|
||||||
com::sun::star::sdbc::ColumnValue::NULLABLE, // nullable
|
css::sdbc::ColumnValue::NULLABLE, // nullable
|
||||||
false, // case sensitive
|
false, // case sensitive
|
||||||
com::sun::star::sdbc::ColumnSearch::FULL, // searchable
|
css::sdbc::ColumnSearch::FULL, // searchable
|
||||||
true, // unsignable
|
true, // unsignable
|
||||||
false, // fixed_prec_scale
|
false, // fixed_prec_scale
|
||||||
true, // auto_increment
|
true, // auto_increment
|
||||||
|
|
|
@ -43,10 +43,10 @@
|
||||||
#include <o3tl/string_view.hxx>
|
#include <o3tl/string_view.hxx>
|
||||||
#include <com/sun/star/frame/theUICommandDescription.hpp>
|
#include <com/sun/star/frame/theUICommandDescription.hpp>
|
||||||
|
|
||||||
namespace uno = com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
namespace frame = com::sun::star::frame;
|
namespace frame = css::frame;
|
||||||
namespace container = com::sun::star::container;
|
namespace container = css::container;
|
||||||
namespace beans = com::sun::star::beans;
|
namespace beans = css::beans;
|
||||||
|
|
||||||
static bool isCategoryAvailable(std::u16string_view sClassId, std::u16string_view sUIItemId,
|
static bool isCategoryAvailable(std::u16string_view sClassId, std::u16string_view sUIItemId,
|
||||||
std::u16string_view sActiveCategory, bool& isCategory)
|
std::u16string_view sActiveCategory, bool& isCategory)
|
||||||
|
|
|
@ -94,12 +94,12 @@
|
||||||
#include <comphelper/processfactory.hxx>
|
#include <comphelper/processfactory.hxx>
|
||||||
#include <config_features.h>
|
#include <config_features.h>
|
||||||
|
|
||||||
namespace uno = com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
namespace frame = com::sun::star::frame;
|
namespace frame = css::frame;
|
||||||
namespace lang = com::sun::star::lang;
|
namespace lang = css::lang;
|
||||||
namespace container = com::sun::star::container;
|
namespace container = css::container;
|
||||||
namespace beans = com::sun::star::beans;
|
namespace beans = css::beans;
|
||||||
namespace graphic = com::sun::star::graphic;
|
namespace graphic = css::graphic;
|
||||||
|
|
||||||
#if OSL_DEBUG_LEVEL > 1
|
#if OSL_DEBUG_LEVEL > 1
|
||||||
|
|
||||||
|
|
|
@ -69,12 +69,11 @@ public:
|
||||||
void SetStylesInfo(SfxStylesInfo_Impl* pStyles);
|
void SetStylesInfo(SfxStylesInfo_Impl* pStyles);
|
||||||
|
|
||||||
// Adds children of the given macro group to the functions list
|
// Adds children of the given macro group to the functions list
|
||||||
void
|
void addChildren(const weld::TreeIter* parentEntry,
|
||||||
addChildren(const weld::TreeIter* parentEntry,
|
const css::uno::Reference<css::script::browse::XBrowseNode>& parentNode,
|
||||||
const css::uno::Reference<com::sun::star::script::browse::XBrowseNode>& parentNode,
|
CuiConfigFunctionListBox* pFunctionListBox, const OUString& filterTerm,
|
||||||
CuiConfigFunctionListBox* pFunctionListBox, const OUString& filterTerm,
|
SaveInData* pCurrentSaveInData,
|
||||||
SaveInData* pCurrentSaveInData,
|
std::vector<std::unique_ptr<weld::TreeIter>>& rNodesToExpand);
|
||||||
std::vector<std::unique_ptr<weld::TreeIter>>& rNodesToExpand);
|
|
||||||
|
|
||||||
void set_visible(bool bVisible) { m_xControl->set_visible(bVisible); }
|
void set_visible(bool bVisible) { m_xControl->set_visible(bVisible); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -73,7 +73,7 @@ void DBTestBase::createDBDocument(const OUString& rDriverURL)
|
||||||
uno::Reference< XOfficeDatabaseDocument > xDocument(
|
uno::Reference< XOfficeDatabaseDocument > xDocument(
|
||||||
m_xSFactory->createInstance(u"com.sun.star.sdb.OfficeDatabaseDocument"_ustr),
|
m_xSFactory->createInstance(u"com.sun.star.sdb.OfficeDatabaseDocument"_ustr),
|
||||||
UNO_QUERY_THROW);
|
UNO_QUERY_THROW);
|
||||||
uno::Reference< com::sun::star::frame::XStorable > xStorable(xDocument, UNO_QUERY_THROW);
|
uno::Reference< css::frame::XStorable > xStorable(xDocument, UNO_QUERY_THROW);
|
||||||
|
|
||||||
uno::Reference< XDataSource > xDataSource = xDocument->getDataSource();
|
uno::Reference< XDataSource > xDataSource = xDocument->getDataSource();
|
||||||
uno::Reference< XPropertySet > xPropertySet(xDataSource, UNO_QUERY_THROW);
|
uno::Reference< XPropertySet > xPropertySet(xDataSource, UNO_QUERY_THROW);
|
||||||
|
|
|
@ -101,7 +101,7 @@ void Tdf119625Test::testTime()
|
||||||
CPPUNIT_ASSERT(xRes->next());
|
CPPUNIT_ASSERT(xRes->next());
|
||||||
CPPUNIT_ASSERT_EQUAL(xRow->getShort(1), e.id);
|
CPPUNIT_ASSERT_EQUAL(xRow->getShort(1), e.id);
|
||||||
auto time_got = xRow->getTime(4);
|
auto time_got = xRow->getTime(4);
|
||||||
auto time_expected = com::sun::star::util::Time(0, e.s, e.m, e.h, false);
|
auto time_expected = css::util::Time(0, e.s, e.m, e.h, false);
|
||||||
auto equal_times = time_got == time_expected;
|
auto equal_times = time_got == time_expected;
|
||||||
CPPUNIT_ASSERT(equal_times);
|
CPPUNIT_ASSERT(equal_times);
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,7 @@ namespace dbaui
|
||||||
|
|
||||||
if (m_xDirectSQL->get_active())
|
if (m_xDirectSQL->get_active())
|
||||||
{
|
{
|
||||||
Reference< com::sun::star::beans::XPropertySet > xStatementProps(xStatement, UNO_QUERY_THROW);
|
Reference< css::beans::XPropertySet > xStatementProps(xStatement, UNO_QUERY_THROW);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
xStatementProps->setPropertyValue(PROPERTY_ESCAPE_PROCESSING, Any(false));
|
xStatementProps->setPropertyValue(PROPERTY_ESCAPE_PROCESSING, Any(false));
|
||||||
|
|
|
@ -281,7 +281,7 @@ namespace desktop {
|
||||||
|
|
||||||
/// Helper function to convert JSON to a vector of PropertyValues.
|
/// Helper function to convert JSON to a vector of PropertyValues.
|
||||||
/// Public to be unit-test-able.
|
/// Public to be unit-test-able.
|
||||||
DESKTOP_DLLPUBLIC std::vector<com::sun::star::beans::PropertyValue> jsonToPropertyValuesVector(const char* pJSON);
|
DESKTOP_DLLPUBLIC std::vector<css::beans::PropertyValue> jsonToPropertyValuesVector(const char* pJSON);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
|
|
@ -998,7 +998,7 @@ void DesktopLOKTest::testWriterComments()
|
||||||
{
|
{
|
||||||
LibLODocument_Impl* pDocument = loadDoc("blank_text.odt");
|
LibLODocument_Impl* pDocument = loadDoc("blank_text.odt");
|
||||||
pDocument->pClass->registerCallback(pDocument, &DesktopLOKTest::callback, this);
|
pDocument->pClass->registerCallback(pDocument, &DesktopLOKTest::callback, this);
|
||||||
uno::Reference<awt::XReschedule> xToolkit = com::sun::star::awt::Toolkit::create(comphelper::getProcessComponentContext());
|
uno::Reference<awt::XReschedule> xToolkit = css::awt::Toolkit::create(comphelper::getProcessComponentContext());
|
||||||
|
|
||||||
// Insert a comment at the beginning of the document and wait till the main
|
// Insert a comment at the beginning of the document and wait till the main
|
||||||
// loop grabs the focus, so characters end up in the annotation window.
|
// loop grabs the focus, so characters end up in the annotation window.
|
||||||
|
@ -1024,7 +1024,7 @@ void DesktopLOKTest::testWriterComments()
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'e', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'e', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 's', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 's', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 't', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 't', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, com::sun::star::awt::Key::ESCAPE);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::ESCAPE);
|
||||||
Scheduler::ProcessEventsToIdle();
|
Scheduler::ProcessEventsToIdle();
|
||||||
|
|
||||||
// Test that the typed characters ended up in the right window.
|
// Test that the typed characters ended up in the right window.
|
||||||
|
@ -2987,7 +2987,7 @@ void DesktopLOKTest::testTextSelectionHandles()
|
||||||
// deselect & check
|
// deselect & check
|
||||||
m_aTextSelectionStart = ""_ostr;
|
m_aTextSelectionStart = ""_ostr;
|
||||||
m_aTextSelectionEnd = ""_ostr;
|
m_aTextSelectionEnd = ""_ostr;
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, com::sun::star::awt::Key::ESCAPE);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::ESCAPE);
|
||||||
Scheduler::ProcessEventsToIdle();
|
Scheduler::ProcessEventsToIdle();
|
||||||
pText = pDocument->pClass->getTextSelection(pDocument, "text/plain;charset=utf-8", nullptr);
|
pText = pDocument->pClass->getTextSelection(pDocument, "text/plain;charset=utf-8", nullptr);
|
||||||
CPPUNIT_ASSERT_EQUAL(static_cast<char *>(nullptr), pText);
|
CPPUNIT_ASSERT_EQUAL(static_cast<char *>(nullptr), pText);
|
||||||
|
@ -3140,7 +3140,7 @@ void DesktopLOKTest::testSpellcheckerMultiView()
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, com::sun::star::awt::Key::ESCAPE);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::ESCAPE);
|
||||||
|
|
||||||
// Start spellchecking.
|
// Start spellchecking.
|
||||||
pDocument->pClass->postUnoCommand(pDocument, ".uno:SpellDialog", nullptr, false);
|
pDocument->pClass->postUnoCommand(pDocument, ".uno:SpellDialog", nullptr, false);
|
||||||
|
@ -3308,7 +3308,7 @@ void DesktopLOKTest::testJumpCursor()
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'v', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'v', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'i', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'i', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 'a', 0);
|
||||||
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, com::sun::star::awt::Key::ESCAPE);
|
pDocument->pClass->postKeyEvent(pDocument, LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::ESCAPE);
|
||||||
Scheduler::ProcessEventsToIdle();
|
Scheduler::ProcessEventsToIdle();
|
||||||
|
|
||||||
// There is a cursor jump to (0, 0) due to
|
// There is a cursor jump to (0, 0) due to
|
||||||
|
|
|
@ -1264,7 +1264,7 @@ private:
|
||||||
|
|
||||||
if (xJavaComponentLoader.is())
|
if (xJavaComponentLoader.is())
|
||||||
{
|
{
|
||||||
const css::uno::Reference< ::com::sun::star::registry::XRegistryKey > xRegistryKey;
|
const css::uno::Reference< css::registry::XRegistryKey > xRegistryKey;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
xJavaComponentLoader->activate(u""_ustr, u""_ustr, u""_ustr, xRegistryKey);
|
xJavaComponentLoader->activate(u""_ustr, u""_ustr, u""_ustr, xRegistryKey);
|
||||||
|
|
|
@ -28,12 +28,12 @@
|
||||||
#include "dp_commandenvironments.hxx"
|
#include "dp_commandenvironments.hxx"
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
|
|
||||||
namespace deployment = com::sun::star::deployment;
|
namespace deployment = css::deployment;
|
||||||
namespace task = com::sun::star::task;
|
namespace task = css::task;
|
||||||
namespace ucb = com::sun::star::ucb;
|
namespace ucb = css::ucb;
|
||||||
namespace uno = com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
|
|
||||||
using ::com::sun::star::uno::Reference;
|
using css::uno::Reference;
|
||||||
|
|
||||||
namespace dp_manager {
|
namespace dp_manager {
|
||||||
|
|
||||||
|
|
|
@ -55,14 +55,14 @@
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
namespace lang = com::sun::star::lang;
|
namespace lang = css::lang;
|
||||||
namespace task = com::sun::star::task;
|
namespace task = css::task;
|
||||||
namespace ucb = com::sun::star::ucb;
|
namespace ucb = css::ucb;
|
||||||
namespace uno = com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
namespace beans = com::sun::star::beans;
|
namespace beans = css::beans;
|
||||||
namespace util = com::sun::star::util;
|
namespace util = css::util;
|
||||||
|
|
||||||
using ::com::sun::star::uno::Reference;
|
using css::uno::Reference;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
@ -45,13 +45,13 @@
|
||||||
#include <dp_version.hxx>
|
#include <dp_version.hxx>
|
||||||
#include <dp_update.hxx>
|
#include <dp_update.hxx>
|
||||||
|
|
||||||
namespace beans = com::sun::star::beans ;
|
namespace beans = css::beans ;
|
||||||
namespace deployment = com::sun::star::deployment ;
|
namespace deployment = css::deployment ;
|
||||||
namespace lang = com::sun::star::lang ;
|
namespace lang = css::lang ;
|
||||||
namespace task = com::sun::star::task ;
|
namespace task = css::task ;
|
||||||
namespace css_ucb = com::sun::star::ucb ;
|
namespace css_ucb = css::ucb ;
|
||||||
namespace uno = com::sun::star::uno ;
|
namespace uno = css::uno ;
|
||||||
namespace xml = com::sun::star::xml ;
|
namespace xml = css::xml ;
|
||||||
|
|
||||||
|
|
||||||
namespace dp_info {
|
namespace dp_info {
|
||||||
|
|
|
@ -26,12 +26,12 @@
|
||||||
#include <dp_ucb.h>
|
#include <dp_ucb.h>
|
||||||
#include "dp_properties.hxx"
|
#include "dp_properties.hxx"
|
||||||
|
|
||||||
namespace lang = com::sun::star::lang;
|
namespace lang = css::lang;
|
||||||
namespace ucb = com::sun::star::ucb;
|
namespace ucb = css::ucb;
|
||||||
namespace uno = com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
|
|
||||||
|
|
||||||
using ::com::sun::star::uno::Reference;
|
using css::uno::Reference;
|
||||||
|
|
||||||
constexpr OUString PROP_SUPPRESS_LICENSE = u"SUPPRESS_LICENSE"_ustr;
|
constexpr OUString PROP_SUPPRESS_LICENSE = u"SUPPRESS_LICENSE"_ustr;
|
||||||
constexpr OUStringLiteral PROP_EXTENSION_UPDATE = u"EXTENSION_UPDATE";
|
constexpr OUStringLiteral PROP_EXTENSION_UPDATE = u"EXTENSION_UPDATE";
|
||||||
|
|
|
@ -7778,7 +7778,7 @@ static void lo_status_indicator_callback(void *data, comphelper::LibreOfficeKit:
|
||||||
/// Used by preloadData (LibreOfficeKit) for providing different shortcuts for different languages.
|
/// Used by preloadData (LibreOfficeKit) for providing different shortcuts for different languages.
|
||||||
static void preLoadShortCutAccelerators()
|
static void preLoadShortCutAccelerators()
|
||||||
{
|
{
|
||||||
std::unordered_map<OUString, css::uno::Reference<com::sun::star::ui::XAcceleratorConfiguration>>& acceleratorConfs = SfxLokHelper::getAcceleratorConfs();
|
std::unordered_map<OUString, css::uno::Reference<css::ui::XAcceleratorConfiguration>>& acceleratorConfs = SfxLokHelper::getAcceleratorConfs();
|
||||||
css::uno::Sequence<OUString> installedLocales(officecfg::Setup::Office::InstalledLocales::get()->getElementNames());
|
css::uno::Sequence<OUString> installedLocales(officecfg::Setup::Office::InstalledLocales::get()->getElementNames());
|
||||||
OUString actualLang = officecfg::Setup::L10N::ooLocale::get();
|
OUString actualLang = officecfg::Setup::L10N::ooLocale::get();
|
||||||
|
|
||||||
|
|
|
@ -41,9 +41,9 @@ information easily via callbacks.
|
||||||
TODO: the callbacks are not implemented yet, we just approve any interaction
|
TODO: the callbacks are not implemented yet, we just approve any interaction
|
||||||
that we get.
|
that we get.
|
||||||
*/
|
*/
|
||||||
class LOKInteractionHandler: public cppu::WeakImplHelper<com::sun::star::lang::XServiceInfo,
|
class LOKInteractionHandler: public cppu::WeakImplHelper<css::lang::XServiceInfo,
|
||||||
com::sun::star::lang::XInitialization,
|
css::lang::XInitialization,
|
||||||
com::sun::star::task::XInteractionHandler2>
|
css::task::XInteractionHandler2>
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
desktop::LibLibreOffice_Impl * m_pLOKit;
|
desktop::LibLibreOffice_Impl * m_pLOKit;
|
||||||
|
@ -76,7 +76,7 @@ private:
|
||||||
bool handlePasswordRequest(const css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>> &rContinuations, const css::uno::Any& rRequest);
|
bool handlePasswordRequest(const css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>> &rContinuations, const css::uno::Any& rRequest);
|
||||||
static bool handleMacroConfirmationRequest(const css::uno::Reference<css::task::XInteractionRequest>& xRequest);
|
static bool handleMacroConfirmationRequest(const css::uno::Reference<css::task::XInteractionRequest>& xRequest);
|
||||||
|
|
||||||
static bool handleFilterOptionsRequest(const ::com::sun::star::uno::Reference<::com::sun::star::task::XInteractionRequest>& Request);
|
static bool handleFilterOptionsRequest(const css::uno::Reference<css::task::XInteractionRequest>& Request);
|
||||||
static bool handlePackageReparationRequest(const css::uno::Reference<css::task::XInteractionRequest>& xRequest);
|
static bool handlePackageReparationRequest(const css::uno::Reference<css::task::XInteractionRequest>& xRequest);
|
||||||
|
|
||||||
static bool handleLoadReadOnlyRequest(const css::uno::Reference<css::task::XInteractionRequest>& xRequest);
|
static bool handleLoadReadOnlyRequest(const css::uno::Reference<css::task::XInteractionRequest>& xRequest);
|
||||||
|
@ -95,13 +95,13 @@ public:
|
||||||
|
|
||||||
virtual sal_Bool SAL_CALL supportsService(OUString const & rServiceName) override;
|
virtual sal_Bool SAL_CALL supportsService(OUString const & rServiceName) override;
|
||||||
|
|
||||||
virtual com::sun::star::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
|
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
|
||||||
|
|
||||||
virtual void SAL_CALL initialize(com::sun::star::uno::Sequence<com::sun::star::uno::Any > const & rArguments) override;
|
virtual void SAL_CALL initialize(css::uno::Sequence<css::uno::Any > const & rArguments) override;
|
||||||
|
|
||||||
virtual void SAL_CALL handle(com::sun::star::uno::Reference<com::sun::star::task::XInteractionRequest> const & rRequest) override;
|
virtual void SAL_CALL handle(css::uno::Reference<css::task::XInteractionRequest> const & rRequest) override;
|
||||||
|
|
||||||
virtual sal_Bool SAL_CALL handleInteractionRequest(const ::com::sun::star::uno::Reference<::com::sun::star::task::XInteractionRequest>& Request) override;
|
virtual sal_Bool SAL_CALL handleInteractionRequest(const css::uno::Reference<css::task::XInteractionRequest>& Request) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
|
|
||||||
#include "download.hxx"
|
#include "download.hxx"
|
||||||
|
|
||||||
namespace beans = com::sun::star::beans ;
|
namespace beans = css::beans ;
|
||||||
namespace container = com::sun::star::container ;
|
namespace container = css::container ;
|
||||||
namespace lang = com::sun::star::lang ;
|
namespace lang = css::lang ;
|
||||||
namespace uno = com::sun::star::uno ;
|
namespace uno = css::uno ;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
@ -53,12 +53,12 @@
|
||||||
#include "updateprotocol.hxx"
|
#include "updateprotocol.hxx"
|
||||||
#include "updatecheckconfig.hxx"
|
#include "updatecheckconfig.hxx"
|
||||||
|
|
||||||
namespace beans = com::sun::star::beans ;
|
namespace beans = css::beans ;
|
||||||
namespace deployment = com::sun::star::deployment ;
|
namespace deployment = css::deployment ;
|
||||||
namespace lang = com::sun::star::lang ;
|
namespace lang = css::lang ;
|
||||||
namespace c3s = com::sun::star::system ;
|
namespace c3s = css::system ;
|
||||||
namespace task = com::sun::star::task ;
|
namespace task = css::task ;
|
||||||
namespace uno = com::sun::star::uno ;
|
namespace uno = css::uno ;
|
||||||
|
|
||||||
constexpr OUStringLiteral PROPERTY_TITLE = u"BubbleHeading";
|
constexpr OUStringLiteral PROPERTY_TITLE = u"BubbleHeading";
|
||||||
constexpr OUStringLiteral PROPERTY_TEXT = u"BubbleText";
|
constexpr OUStringLiteral PROPERTY_TEXT = u"BubbleText";
|
||||||
|
|
|
@ -36,11 +36,11 @@
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace container = com::sun::star::container ;
|
namespace container = css::container ;
|
||||||
namespace beans = com::sun::star::beans ;
|
namespace beans = css::beans ;
|
||||||
namespace lang = com::sun::star::lang ;
|
namespace lang = css::lang ;
|
||||||
namespace util = com::sun::star::util ;
|
namespace util = css::util ;
|
||||||
namespace uno = com::sun::star::uno ;
|
namespace uno = css::uno ;
|
||||||
|
|
||||||
#define LAST_CHECK "LastCheck"
|
#define LAST_CHECK "LastCheck"
|
||||||
#define UPDATE_VERSION "UpdateVersion"
|
#define UPDATE_VERSION "UpdateVersion"
|
||||||
|
|
|
@ -36,11 +36,11 @@
|
||||||
#include <com/sun/star/frame/XTerminateListener.hpp>
|
#include <com/sun/star/frame/XTerminateListener.hpp>
|
||||||
#include <com/sun/star/task/XJob.hpp>
|
#include <com/sun/star/task/XJob.hpp>
|
||||||
|
|
||||||
namespace beans = com::sun::star::beans ;
|
namespace beans = css::beans ;
|
||||||
namespace frame = com::sun::star::frame ;
|
namespace frame = css::frame ;
|
||||||
namespace lang = com::sun::star::lang ;
|
namespace lang = css::lang ;
|
||||||
namespace task = com::sun::star::task ;
|
namespace task = css::task ;
|
||||||
namespace uno = com::sun::star::uno ;
|
namespace uno = css::uno ;
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "sal/log.hxx"
|
#include "sal/log.hxx"
|
||||||
|
|
||||||
namespace task = ::com::sun::star::task;
|
namespace task = css::task;
|
||||||
namespace uno = ::com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
|
|
||||||
|
|
||||||
SAL_IMPLEMENT_MAIN()
|
SAL_IMPLEMENT_MAIN()
|
||||||
|
|
|
@ -31,10 +31,10 @@
|
||||||
#include <sal/log.hxx>
|
#include <sal/log.hxx>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
namespace deployment = ::com::sun::star::deployment;
|
namespace deployment = css::deployment;
|
||||||
namespace lang = ::com::sun::star::lang;
|
namespace lang = css::lang;
|
||||||
namespace uno = ::com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
namespace xml = ::com::sun::star::xml;
|
namespace xml = css::xml;
|
||||||
|
|
||||||
|
|
||||||
SAL_IMPLEMENT_MAIN()
|
SAL_IMPLEMENT_MAIN()
|
||||||
|
|
|
@ -56,15 +56,15 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vcl/svapp.hxx>
|
#include <vcl/svapp.hxx>
|
||||||
|
|
||||||
namespace beans = com::sun::star::beans ;
|
namespace beans = css::beans ;
|
||||||
namespace container = com::sun::star::container ;
|
namespace container = css::container ;
|
||||||
namespace deployment = com::sun::star::deployment ;
|
namespace deployment = css::deployment ;
|
||||||
namespace io = com::sun::star::io ;
|
namespace io = css::io ;
|
||||||
namespace lang = com::sun::star::lang ;
|
namespace lang = css::lang ;
|
||||||
namespace task = com::sun::star::task ;
|
namespace task = css::task ;
|
||||||
namespace ucb = com::sun::star::ucb ;
|
namespace ucb = css::ucb ;
|
||||||
namespace uno = com::sun::star::uno ;
|
namespace uno = css::uno ;
|
||||||
namespace xml = com::sun::star::xml ;
|
namespace xml = css::xml ;
|
||||||
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
|
|
@ -4625,12 +4625,12 @@ rtl::Reference<SdrObject> SvxMSDffManager::ImportShape( const DffRecordHeader& r
|
||||||
if (seqAdjustmentValues[0].State == css::beans::PropertyState_DEFAULT_VALUE)
|
if (seqAdjustmentValues[0].State == css::beans::PropertyState_DEFAULT_VALUE)
|
||||||
{
|
{
|
||||||
pseqAdjustmentValues[0].Value <<= -90.0;
|
pseqAdjustmentValues[0].Value <<= -90.0;
|
||||||
pseqAdjustmentValues[0].State = com::sun::star::beans::PropertyState_DIRECT_VALUE;
|
pseqAdjustmentValues[0].State = css::beans::PropertyState_DIRECT_VALUE;
|
||||||
}
|
}
|
||||||
if (seqAdjustmentValues[1].State == css::beans::PropertyState_DEFAULT_VALUE)
|
if (seqAdjustmentValues[1].State == css::beans::PropertyState_DEFAULT_VALUE)
|
||||||
{
|
{
|
||||||
pseqAdjustmentValues[1].Value <<= 0.0;
|
pseqAdjustmentValues[1].Value <<= 0.0;
|
||||||
pseqAdjustmentValues[1].State = com::sun::star::beans::PropertyState_DIRECT_VALUE;
|
pseqAdjustmentValues[1].State = css::beans::PropertyState_DIRECT_VALUE;
|
||||||
}
|
}
|
||||||
seqAdjustmentValues[0].Value >>= fStartAngle;
|
seqAdjustmentValues[0].Value >>= fStartAngle;
|
||||||
seqAdjustmentValues[1].Value >>= fEndAngle;
|
seqAdjustmentValues[1].Value >>= fEndAngle;
|
||||||
|
|
|
@ -245,7 +245,7 @@ bool OTimeModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
|
||||||
{
|
{
|
||||||
util::DateTime aDateTime = m_xColumn->getTimestamp();
|
util::DateTime aDateTime = m_xColumn->getTimestamp();
|
||||||
if (aDateTime.Year == 0 && aDateTime.Month == 0 && aDateTime.Day == 0)
|
if (aDateTime.Year == 0 && aDateTime.Month == 0 && aDateTime.Day == 0)
|
||||||
aDateTime = ::com::sun::star::util::DateTime(0,0,0,0,30,12,1899, false);
|
aDateTime = css::util::DateTime(0,0,0,0,30,12,1899, false);
|
||||||
aDateTime.NanoSeconds = aTime.NanoSeconds;
|
aDateTime.NanoSeconds = aTime.NanoSeconds;
|
||||||
aDateTime.Seconds = aTime.Seconds;
|
aDateTime.Seconds = aTime.Seconds;
|
||||||
aDateTime.Minutes = aTime.Minutes;
|
aDateTime.Minutes = aTime.Minutes;
|
||||||
|
|
|
@ -134,7 +134,7 @@ namespace
|
||||||
|
|
||||||
// all okay?
|
// all okay?
|
||||||
if ( !bWellformed )
|
if ( !bWellformed )
|
||||||
throw com::sun::star::lang::IllegalArgumentException();
|
throw css::lang::IllegalArgumentException();
|
||||||
|
|
||||||
return aDate;
|
return aDate;
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ namespace
|
||||||
|
|
||||||
// all okay?
|
// all okay?
|
||||||
if ( !bWellformed )
|
if ( !bWellformed )
|
||||||
throw com::sun::star::lang::IllegalArgumentException();
|
throw css::lang::IllegalArgumentException();
|
||||||
|
|
||||||
return aTime;
|
return aTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -859,7 +859,7 @@ namespace xforms
|
||||||
{
|
{
|
||||||
aTypeValue = Convert::get().toAny( value, getCppuType() );
|
aTypeValue = Convert::get().toAny( value, getCppuType() );
|
||||||
}
|
}
|
||||||
catch (com::sun::star::lang::IllegalArgumentException)
|
catch (css::lang::IllegalArgumentException)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -916,7 +916,7 @@ namespace xforms
|
||||||
{
|
{
|
||||||
aTypedValue = Convert::get().toAny( value, getCppuType() );
|
aTypedValue = Convert::get().toAny( value, getCppuType() );
|
||||||
}
|
}
|
||||||
catch (com::sun::star::lang::IllegalArgumentException)
|
catch (css::lang::IllegalArgumentException)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -996,7 +996,7 @@ namespace xforms
|
||||||
{
|
{
|
||||||
aTypedValue = Convert::get().toAny( value, getCppuType() );
|
aTypedValue = Convert::get().toAny( value, getCppuType() );
|
||||||
}
|
}
|
||||||
catch (com::sun::star::uno::RuntimeException)
|
catch (css::uno::RuntimeException)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ class SubToolBarController : public ToolBarBase
|
||||||
css::uno::Reference< css::ui::XUIElement > m_xUIElement;
|
css::uno::Reference< css::ui::XUIElement > m_xUIElement;
|
||||||
void disposeUIElement();
|
void disposeUIElement();
|
||||||
public:
|
public:
|
||||||
explicit SubToolBarController( const rtl::Reference< com::sun::star::uno::XComponentContext >& rxContext,
|
explicit SubToolBarController( const rtl::Reference< css::uno::XComponentContext >& rxContext,
|
||||||
const css::uno::Sequence< css::uno::Any >& rxArgs );
|
const css::uno::Sequence< css::uno::Any >& rxArgs );
|
||||||
virtual ~SubToolBarController() override;
|
virtual ~SubToolBarController() override;
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
SubToolBarController::SubToolBarController(
|
SubToolBarController::SubToolBarController(
|
||||||
const rtl::Reference< com::sun::star::uno::XComponentContext >& rxContext,
|
const rtl::Reference< css::uno::XComponentContext >& rxContext,
|
||||||
const css::uno::Sequence< css::uno::Any >& rxArgs
|
const css::uno::Sequence< css::uno::Any >& rxArgs
|
||||||
) : ToolBarBase(
|
) : ToolBarBase(
|
||||||
rxContext,
|
rxContext,
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
typedef ::o3tl::sorted_vector< OUString > NameSet;
|
typedef ::o3tl::sorted_vector< OUString > NameSet;
|
||||||
typedef ::o3tl::sorted_vector< sal_Int16 > ValueSet;
|
typedef ::o3tl::sorted_vector< sal_Int16 > ValueSet;
|
||||||
|
|
||||||
namespace cssi = ::com::sun::star::i18n;
|
namespace cssi = css::i18n;
|
||||||
|
|
||||||
LocaleNode::LocaleNode (OUString name, const Reference< XAttributeList > & attr)
|
LocaleNode::LocaleNode (OUString name, const Reference< XAttributeList > & attr)
|
||||||
: aName(std::move(name))
|
: aName(std::move(name))
|
||||||
|
|
|
@ -33,11 +33,10 @@ namespace basegfx::utils
|
||||||
B3DHomMatrix. drawing::HomogenMatrix4 is not used by OOo
|
B3DHomMatrix. drawing::HomogenMatrix4 is not used by OOo
|
||||||
*/
|
*/
|
||||||
BASEGFX_DLLPUBLIC B3DHomMatrix
|
BASEGFX_DLLPUBLIC B3DHomMatrix
|
||||||
UnoHomogenMatrixToB3DHomMatrix(const com::sun::star::drawing::HomogenMatrix& rMatrixIn);
|
UnoHomogenMatrixToB3DHomMatrix(const css::drawing::HomogenMatrix& rMatrixIn);
|
||||||
|
|
||||||
BASEGFX_DLLPUBLIC void
|
BASEGFX_DLLPUBLIC void B3DHomMatrixToUnoHomogenMatrix(const B3DHomMatrix& rMatrixIn,
|
||||||
B3DHomMatrixToUnoHomogenMatrix(const B3DHomMatrix& rMatrixIn,
|
css::drawing::HomogenMatrix& rMatrixOut);
|
||||||
com::sun::star::drawing::HomogenMatrix& rMatrixOut);
|
|
||||||
|
|
||||||
} // end of namespace basegfx::tools
|
} // end of namespace basegfx::tools
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ private:
|
||||||
const oox::ppt::SlidePersistPtr& rPersist );
|
const oox::ppt::SlidePersistPtr& rPersist );
|
||||||
void importSlide(sal_uInt32 nSlide, bool bFirstSlide, bool bImportNotes);
|
void importSlide(sal_uInt32 nSlide, bool bFirstSlide, bool bImportNotes);
|
||||||
void importMasterSlides();
|
void importMasterSlides();
|
||||||
void importMasterSlide(const ::com::sun::star::uno::Reference<::com::sun::star::frame::XModel>& xModel,
|
void importMasterSlide(const css::uno::Reference<css::frame::XModel>& xModel,
|
||||||
::oox::ppt::PowerPointImport& rFilter,
|
::oox::ppt::PowerPointImport& rFilter,
|
||||||
const OUString& rMasterFragmentPath);
|
const OUString& rMasterFragmentPath);
|
||||||
void saveThemeToGrabBag(const oox::drawingml::ThemePtr& pThemePtr, sal_Int32 nThemeIdx);
|
void saveThemeToGrabBag(const oox::drawingml::ThemePtr& pThemePtr, sal_Int32 nThemeIdx);
|
||||||
|
|
|
@ -87,7 +87,7 @@ class SFX2_DLLPUBLIC SfxLokHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/// Gets the short cut accelerators.
|
/// Gets the short cut accelerators.
|
||||||
static std::unordered_map<OUString, css::uno::Reference<com::sun::star::ui::XAcceleratorConfiguration>>& getAcceleratorConfs();
|
static std::unordered_map<OUString, css::uno::Reference<css::ui::XAcceleratorConfiguration>>& getAcceleratorConfs();
|
||||||
/// Create a new view shell from the current view frame.
|
/// Create a new view shell from the current view frame.
|
||||||
/// This assumes a single document is ever loaded.
|
/// This assumes a single document is ever loaded.
|
||||||
static int createView();
|
static int createView();
|
||||||
|
|
|
@ -29,9 +29,9 @@ public:
|
||||||
|
|
||||||
virtual ~SvxFmMSFactory() {}
|
virtual ~SvxFmMSFactory() {}
|
||||||
|
|
||||||
virtual ::com::sun::star::uno::Reference<::com::sun::star::uno::XInterface>
|
virtual css::uno::Reference<css::uno::XInterface>
|
||||||
SAL_CALL createInstance(const OUString& ServiceSpecifier) override;
|
SAL_CALL createInstance(const OUString& ServiceSpecifier) override;
|
||||||
virtual ::com::sun::star::uno::Sequence<OUString> SAL_CALL getAvailableServiceNames() override;
|
virtual css::uno::Sequence<OUString> SAL_CALL getAvailableServiceNames() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_SVX_FMDMOD_HXX
|
#endif // INCLUDED_SVX_FMDMOD_HXX
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
~XSheetCellRangeContainer() {}
|
~XSheetCellRangeContainer() {}
|
||||||
static css::uno::Sequence<com::sun::star::table::CellRangeAddress> createCellRangeAddresses();
|
static css::uno::Sequence<css::table::CellRangeAddress> createCellRangeAddresses();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,7 @@ class OOO_DLLPUBLIC_TEST XSheetConditionalEntries
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual css::uno::Reference<css::uno::XInterface> init() = 0;
|
virtual css::uno::Reference<css::uno::XInterface> init() = 0;
|
||||||
virtual css::uno::Sequence<com::sun::star::beans::PropertyValue>
|
virtual css::uno::Sequence<css::beans::PropertyValue> createCondition(const sal_Int32 nr) = 0;
|
||||||
createCondition(const sal_Int32 nr) = 0;
|
|
||||||
|
|
||||||
void testAddNew();
|
void testAddNew();
|
||||||
void testClear();
|
void testClear();
|
||||||
|
|
|
@ -75,9 +75,8 @@ protected:
|
||||||
rtl::Reference<TestInteractionHandler> xInteractionHandler;
|
rtl::Reference<TestInteractionHandler> xInteractionHandler;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void
|
void setTestInteractionHandler(const char* pPassword,
|
||||||
setTestInteractionHandler(const char* pPassword,
|
std::vector<css::beans::PropertyValue>& rFilterOptions);
|
||||||
std::vector<com::sun::star::beans::PropertyValue>& rFilterOptions);
|
|
||||||
|
|
||||||
bool mbSkipValidation;
|
bool mbSkipValidation;
|
||||||
OUString m_aBaseString;
|
OUString m_aBaseString;
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace unotools
|
||||||
avoid overly tight requirements on when interface_type needs to be complete.)
|
avoid overly tight requirements on when interface_type needs to be complete.)
|
||||||
*/
|
*/
|
||||||
template <class interface_type>
|
template <class interface_type>
|
||||||
class SAL_WARN_UNUSED WeakReference : public com::sun::star::uno::WeakReferenceHelper
|
class SAL_WARN_UNUSED WeakReference : public css::uno::WeakReferenceHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/** Default ctor. Creates an empty weak reference.
|
/** Default ctor. Creates an empty weak reference.
|
||||||
|
|
|
@ -252,41 +252,41 @@ gtv_lok_dialog_signal_key(GtkWidget* pDialogDrawingArea, GdkEventKey* pEvent)
|
||||||
switch (pEvent->keyval)
|
switch (pEvent->keyval)
|
||||||
{
|
{
|
||||||
case GDK_KEY_BackSpace:
|
case GDK_KEY_BackSpace:
|
||||||
nKeyCode = com::sun::star::awt::Key::BACKSPACE;
|
nKeyCode = css::awt::Key::BACKSPACE;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Delete:
|
case GDK_KEY_Delete:
|
||||||
nKeyCode = com::sun::star::awt::Key::DELETE;
|
nKeyCode = css::awt::Key::DELETE;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Return:
|
case GDK_KEY_Return:
|
||||||
case GDK_KEY_KP_Enter:
|
case GDK_KEY_KP_Enter:
|
||||||
nKeyCode = com::sun::star::awt::Key::RETURN;
|
nKeyCode = css::awt::Key::RETURN;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Escape:
|
case GDK_KEY_Escape:
|
||||||
nKeyCode = com::sun::star::awt::Key::ESCAPE;
|
nKeyCode = css::awt::Key::ESCAPE;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Tab:
|
case GDK_KEY_Tab:
|
||||||
nKeyCode = com::sun::star::awt::Key::TAB;
|
nKeyCode = css::awt::Key::TAB;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Down:
|
case GDK_KEY_Down:
|
||||||
nKeyCode = com::sun::star::awt::Key::DOWN;
|
nKeyCode = css::awt::Key::DOWN;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Up:
|
case GDK_KEY_Up:
|
||||||
nKeyCode = com::sun::star::awt::Key::UP;
|
nKeyCode = css::awt::Key::UP;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Left:
|
case GDK_KEY_Left:
|
||||||
nKeyCode = com::sun::star::awt::Key::LEFT;
|
nKeyCode = css::awt::Key::LEFT;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Right:
|
case GDK_KEY_Right:
|
||||||
nKeyCode = com::sun::star::awt::Key::RIGHT;
|
nKeyCode = css::awt::Key::RIGHT;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Page_Down:
|
case GDK_KEY_Page_Down:
|
||||||
nKeyCode = com::sun::star::awt::Key::PAGEDOWN;
|
nKeyCode = css::awt::Key::PAGEDOWN;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Page_Up:
|
case GDK_KEY_Page_Up:
|
||||||
nKeyCode = com::sun::star::awt::Key::PAGEUP;
|
nKeyCode = css::awt::Key::PAGEUP;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Insert:
|
case GDK_KEY_Insert:
|
||||||
nKeyCode = com::sun::star::awt::Key::INSERT;
|
nKeyCode = css::awt::Key::INSERT;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Shift_L:
|
case GDK_KEY_Shift_L:
|
||||||
case GDK_KEY_Shift_R:
|
case GDK_KEY_Shift_R:
|
||||||
|
@ -307,7 +307,7 @@ gtv_lok_dialog_signal_key(GtkWidget* pDialogDrawingArea, GdkEventKey* pEvent)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (pEvent->keyval >= GDK_KEY_F1 && pEvent->keyval <= GDK_KEY_F26)
|
if (pEvent->keyval >= GDK_KEY_F1 && pEvent->keyval <= GDK_KEY_F26)
|
||||||
nKeyCode = com::sun::star::awt::Key::F1 + (pEvent->keyval - GDK_KEY_F1);
|
nKeyCode = css::awt::Key::F1 + (pEvent->keyval - GDK_KEY_F1);
|
||||||
else
|
else
|
||||||
nCharCode = gdk_keyval_to_unicode(pEvent->keyval);
|
nCharCode = gdk_keyval_to_unicode(pEvent->keyval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -661,41 +661,41 @@ signalKey (GtkWidget* pWidget, GdkEventKey* pEvent)
|
||||||
switch (pEvent->keyval)
|
switch (pEvent->keyval)
|
||||||
{
|
{
|
||||||
case GDK_KEY_BackSpace:
|
case GDK_KEY_BackSpace:
|
||||||
nKeyCode = com::sun::star::awt::Key::BACKSPACE;
|
nKeyCode = css::awt::Key::BACKSPACE;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Delete:
|
case GDK_KEY_Delete:
|
||||||
nKeyCode = com::sun::star::awt::Key::DELETE;
|
nKeyCode = css::awt::Key::DELETE;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Return:
|
case GDK_KEY_Return:
|
||||||
case GDK_KEY_KP_Enter:
|
case GDK_KEY_KP_Enter:
|
||||||
nKeyCode = com::sun::star::awt::Key::RETURN;
|
nKeyCode = css::awt::Key::RETURN;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Escape:
|
case GDK_KEY_Escape:
|
||||||
nKeyCode = com::sun::star::awt::Key::ESCAPE;
|
nKeyCode = css::awt::Key::ESCAPE;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Tab:
|
case GDK_KEY_Tab:
|
||||||
nKeyCode = com::sun::star::awt::Key::TAB;
|
nKeyCode = css::awt::Key::TAB;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Down:
|
case GDK_KEY_Down:
|
||||||
nKeyCode = com::sun::star::awt::Key::DOWN;
|
nKeyCode = css::awt::Key::DOWN;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Up:
|
case GDK_KEY_Up:
|
||||||
nKeyCode = com::sun::star::awt::Key::UP;
|
nKeyCode = css::awt::Key::UP;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Left:
|
case GDK_KEY_Left:
|
||||||
nKeyCode = com::sun::star::awt::Key::LEFT;
|
nKeyCode = css::awt::Key::LEFT;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Right:
|
case GDK_KEY_Right:
|
||||||
nKeyCode = com::sun::star::awt::Key::RIGHT;
|
nKeyCode = css::awt::Key::RIGHT;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Page_Down:
|
case GDK_KEY_Page_Down:
|
||||||
nKeyCode = com::sun::star::awt::Key::PAGEDOWN;
|
nKeyCode = css::awt::Key::PAGEDOWN;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Page_Up:
|
case GDK_KEY_Page_Up:
|
||||||
nKeyCode = com::sun::star::awt::Key::PAGEUP;
|
nKeyCode = css::awt::Key::PAGEUP;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Insert:
|
case GDK_KEY_Insert:
|
||||||
nKeyCode = com::sun::star::awt::Key::INSERT;
|
nKeyCode = css::awt::Key::INSERT;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Shift_L:
|
case GDK_KEY_Shift_L:
|
||||||
case GDK_KEY_Shift_R:
|
case GDK_KEY_Shift_R:
|
||||||
|
@ -716,7 +716,7 @@ signalKey (GtkWidget* pWidget, GdkEventKey* pEvent)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (pEvent->keyval >= GDK_KEY_F1 && pEvent->keyval <= GDK_KEY_F26)
|
if (pEvent->keyval >= GDK_KEY_F1 && pEvent->keyval <= GDK_KEY_F26)
|
||||||
nKeyCode = com::sun::star::awt::Key::F1 + (pEvent->keyval - GDK_KEY_F1);
|
nKeyCode = css::awt::Key::F1 + (pEvent->keyval - GDK_KEY_F1);
|
||||||
else
|
else
|
||||||
nCharCode = gdk_keyval_to_unicode(pEvent->keyval);
|
nCharCode = gdk_keyval_to_unicode(pEvent->keyval);
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,11 +152,11 @@ void TestRestProtocol::testProofreading()
|
||||||
|
|
||||||
CPPUNIT_ASSERT_EQUAL(u"duden"_ustr, *LanguageToolCfg::RestProtocol::get());
|
CPPUNIT_ASSERT_EQUAL(u"duden"_ustr, *LanguageToolCfg::RestProtocol::get());
|
||||||
|
|
||||||
Reference<::com::sun::star::linguistic2::XProofreader> xProofreader(
|
Reference<css::linguistic2::XProofreader> xProofreader(
|
||||||
m_xSFactory->createInstance(u"com.sun.star.linguistic2.Proofreader"_ustr), UNO_QUERY);
|
m_xSFactory->createInstance(u"com.sun.star.linguistic2.Proofreader"_ustr), UNO_QUERY);
|
||||||
CPPUNIT_ASSERT(xProofreader.is());
|
CPPUNIT_ASSERT(xProofreader.is());
|
||||||
|
|
||||||
com::sun::star::linguistic2::ProofreadingResult aResult
|
css::linguistic2::ProofreadingResult aResult
|
||||||
= xProofreader->doProofreading(u"id"_ustr, u"ths is a tst"_ustr, aLocale, 0, 0, {});
|
= xProofreader->doProofreading(u"id"_ustr, u"ths is a tst"_ustr, aLocale, 0, 0, {});
|
||||||
|
|
||||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(2), aResult.aErrors.getLength());
|
CPPUNIT_ASSERT_EQUAL(sal_Int32(2), aResult.aErrors.getLength());
|
||||||
|
|
|
@ -149,7 +149,7 @@ CPPUNIT_TEST_FIXTURE(TestWPC, WPC_BentConnector)
|
||||||
CPPUNIT_ASSERT(xInfo->supportsService(u"com.sun.star.drawing.ConnectorShape"_ustr));
|
CPPUNIT_ASSERT(xInfo->supportsService(u"com.sun.star.drawing.ConnectorShape"_ustr));
|
||||||
|
|
||||||
uno::Reference<beans::XPropertySet> xShapeProps(xGroup->getByIndex(2), uno::UNO_QUERY);
|
uno::Reference<beans::XPropertySet> xShapeProps(xGroup->getByIndex(2), uno::UNO_QUERY);
|
||||||
com::sun::star::drawing::ConnectorType eEdgeKind;
|
css::drawing::ConnectorType eEdgeKind;
|
||||||
xShapeProps->getPropertyValue(UNO_NAME_EDGEKIND) >>= eEdgeKind;
|
xShapeProps->getPropertyValue(UNO_NAME_EDGEKIND) >>= eEdgeKind;
|
||||||
CPPUNIT_ASSERT_EQUAL(drawing::ConnectorType::ConnectorType_STANDARD, eEdgeKind);
|
CPPUNIT_ASSERT_EQUAL(drawing::ConnectorType::ConnectorType_STANDARD, eEdgeKind);
|
||||||
|
|
||||||
|
@ -324,7 +324,7 @@ CPPUNIT_TEST_FIXTURE(TestWPC, WPC_CurvedConnector2)
|
||||||
CPPUNIT_ASSERT(xInfo->supportsService(u"com.sun.star.drawing.ConnectorShape"_ustr));
|
CPPUNIT_ASSERT(xInfo->supportsService(u"com.sun.star.drawing.ConnectorShape"_ustr));
|
||||||
|
|
||||||
uno::Reference<beans::XPropertySet> xShapeProps(xGroup->getByIndex(3), uno::UNO_QUERY);
|
uno::Reference<beans::XPropertySet> xShapeProps(xGroup->getByIndex(3), uno::UNO_QUERY);
|
||||||
com::sun::star::drawing::ConnectorType eEdgeKind;
|
css::drawing::ConnectorType eEdgeKind;
|
||||||
xShapeProps->getPropertyValue(UNO_NAME_EDGEKIND) >>= eEdgeKind;
|
xShapeProps->getPropertyValue(UNO_NAME_EDGEKIND) >>= eEdgeKind;
|
||||||
CPPUNIT_ASSERT_EQUAL(drawing::ConnectorType::ConnectorType_CURVE, eEdgeKind);
|
CPPUNIT_ASSERT_EQUAL(drawing::ConnectorType::ConnectorType_CURVE, eEdgeKind);
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ void SAL_CALL DocumentPropertiesImport::importProperties(
|
||||||
aParser.parseStream( rCustomStream, true );
|
aParser.parseStream( rCustomStream, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference < com::sun::star::io::XInputStream > SAL_CALL DocumentPropertiesImport::getCorePropertiesStream(
|
Reference < css::io::XInputStream > SAL_CALL DocumentPropertiesImport::getCorePropertiesStream(
|
||||||
const Reference< XStorage >& rxSource)
|
const Reference< XStorage >& rxSource)
|
||||||
{
|
{
|
||||||
Sequence< InputSource > aCoreStreams = lclGetCoreStreams(rxSource);
|
Sequence< InputSource > aCoreStreams = lclGetCoreStreams(rxSource);
|
||||||
|
@ -192,7 +192,7 @@ Reference < com::sun::star::io::XInputStream > SAL_CALL DocumentPropertiesImport
|
||||||
return aCoreStreams[0].aInputStream;
|
return aCoreStreams[0].aInputStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference < com::sun::star::io::XInputStream > SAL_CALL DocumentPropertiesImport::getExtendedPropertiesStream(
|
Reference < css::io::XInputStream > SAL_CALL DocumentPropertiesImport::getExtendedPropertiesStream(
|
||||||
const Reference< XStorage >& rxSource)
|
const Reference< XStorage >& rxSource)
|
||||||
{
|
{
|
||||||
Sequence< InputSource > aExtStreams = lclGetExtStreams(rxSource);
|
Sequence< InputSource > aExtStreams = lclGetExtStreams(rxSource);
|
||||||
|
@ -202,7 +202,7 @@ Reference < com::sun::star::io::XInputStream > SAL_CALL DocumentPropertiesImport
|
||||||
return aExtStreams[0].aInputStream;
|
return aExtStreams[0].aInputStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
css::uno::Sequence< css::uno::Reference< com::sun::star::io::XInputStream > > SAL_CALL DocumentPropertiesImport::getCustomPropertiesStreams(
|
css::uno::Sequence< css::uno::Reference< css::io::XInputStream > > SAL_CALL DocumentPropertiesImport::getCustomPropertiesStreams(
|
||||||
const Reference< XStorage >& rxSource)
|
const Reference< XStorage >& rxSource)
|
||||||
{
|
{
|
||||||
Sequence <InputSource> aExtStreams = lclGetCustomStreams(rxSource);
|
Sequence <InputSource> aExtStreams = lclGetCustomStreams(rxSource);
|
||||||
|
|
|
@ -45,11 +45,11 @@ public:
|
||||||
virtual void SAL_CALL importProperties(
|
virtual void SAL_CALL importProperties(
|
||||||
const css::uno::Reference< css::embed::XStorage >& rxSource,
|
const css::uno::Reference< css::embed::XStorage >& rxSource,
|
||||||
const css::uno::Reference< css::document::XDocumentProperties >& rxDocumentProperties ) override;
|
const css::uno::Reference< css::document::XDocumentProperties >& rxDocumentProperties ) override;
|
||||||
virtual css::uno::Reference < com::sun::star::io::XInputStream > SAL_CALL getCorePropertiesStream(
|
virtual css::uno::Reference < css::io::XInputStream > SAL_CALL getCorePropertiesStream(
|
||||||
const css::uno::Reference< css::embed::XStorage >& rxSource) override;
|
const css::uno::Reference< css::embed::XStorage >& rxSource) override;
|
||||||
virtual css::uno::Reference < com::sun::star::io::XInputStream > SAL_CALL getExtendedPropertiesStream(
|
virtual css::uno::Reference < css::io::XInputStream > SAL_CALL getExtendedPropertiesStream(
|
||||||
const css::uno::Reference< css::embed::XStorage >& rxSource) override;
|
const css::uno::Reference< css::embed::XStorage >& rxSource) override;
|
||||||
virtual css::uno::Sequence< css::uno::Reference< com::sun::star::io::XInputStream > > SAL_CALL getCustomPropertiesStreams(
|
virtual css::uno::Sequence< css::uno::Reference< css::io::XInputStream > > SAL_CALL getCustomPropertiesStreams(
|
||||||
const css::uno::Reference< css::embed::XStorage >& rxSource) override;
|
const css::uno::Reference< css::embed::XStorage >& rxSource) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -149,8 +149,8 @@ void AxisConverter::convertFromModel(const Reference<XCoordinateSystem>& rxCoord
|
||||||
Reference< XAxis > xAxis;
|
Reference< XAxis > xAxis;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
namespace cssc = ::com::sun::star::chart;
|
namespace cssc = css::chart;
|
||||||
namespace cssc2 = ::com::sun::star::chart2;
|
namespace cssc2 = css::chart2;
|
||||||
|
|
||||||
const TypeGroupInfo& rTypeInfo = rTypeGroups.front()->getTypeInfo();
|
const TypeGroupInfo& rTypeInfo = rTypeGroups.front()->getTypeInfo();
|
||||||
ObjectFormatter& rFormatter = getFormatter();
|
ObjectFormatter& rFormatter = getFormatter();
|
||||||
|
|
|
@ -244,7 +244,7 @@ void ChartSpaceConverter::convertFromModel( const Reference< XShapes >& rxExtern
|
||||||
|
|
||||||
/* Following all conversions needing the old Chart1 API that involves full
|
/* Following all conversions needing the old Chart1 API that involves full
|
||||||
initialization of the chart view. */
|
initialization of the chart view. */
|
||||||
namespace cssc = ::com::sun::star::chart;
|
namespace cssc = css::chart;
|
||||||
Reference< cssc::XChartDocument > xChart1Doc( getChartDocument(), UNO_QUERY );
|
Reference< cssc::XChartDocument > xChart1Doc( getChartDocument(), UNO_QUERY );
|
||||||
if( xChart1Doc.is() )
|
if( xChart1Doc.is() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -212,7 +212,7 @@ View3DConverter::~View3DConverter()
|
||||||
|
|
||||||
void View3DConverter::convertFromModel( const Reference< XDiagram >& rxDiagram, TypeGroupConverter const & rTypeGroup )
|
void View3DConverter::convertFromModel( const Reference< XDiagram >& rxDiagram, TypeGroupConverter const & rTypeGroup )
|
||||||
{
|
{
|
||||||
namespace cssd = ::com::sun::star::drawing;
|
namespace cssd = css::drawing;
|
||||||
PropertySet aPropSet( rxDiagram );
|
PropertySet aPropSet( rxDiagram );
|
||||||
|
|
||||||
sal_Int32 nRotationY = 0;
|
sal_Int32 nRotationY = 0;
|
||||||
|
@ -466,7 +466,7 @@ void PlotAreaConverter::convertPositionFromModel()
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
namespace cssc = ::com::sun::star::chart;
|
namespace cssc = css::chart;
|
||||||
Reference< cssc::XChartDocument > xChart1Doc( getChartDocument(), UNO_QUERY_THROW );
|
Reference< cssc::XChartDocument > xChart1Doc( getChartDocument(), UNO_QUERY_THROW );
|
||||||
Reference< cssc::XDiagramPositioning > xPositioning( xChart1Doc->getDiagram(), UNO_QUERY_THROW );
|
Reference< cssc::XDiagramPositioning > xPositioning( xChart1Doc->getDiagram(), UNO_QUERY_THROW );
|
||||||
// for pie charts, always set inner plot area size to exclude the data labels as Excel does
|
// for pie charts, always set inner plot area size to exclude the data labels as Excel does
|
||||||
|
|
|
@ -170,7 +170,7 @@ void lclConvertLabelFormatting( PropertySet& rPropSet, ObjectFormatter& rFormatt
|
||||||
if( !(bDataSeriesLabel || rDataLabel.monLabelPos.has_value()) )
|
if( !(bDataSeriesLabel || rDataLabel.monLabelPos.has_value()) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
namespace csscd = ::com::sun::star::chart::DataLabelPlacement;
|
namespace csscd = css::chart::DataLabelPlacement;
|
||||||
sal_Int32 nPlacement = -1;
|
sal_Int32 nPlacement = -1;
|
||||||
switch( rDataLabel.monLabelPos.value_or( XML_TOKEN_INVALID ) )
|
switch( rDataLabel.monLabelPos.value_or( XML_TOKEN_INVALID ) )
|
||||||
{
|
{
|
||||||
|
@ -534,7 +534,7 @@ void ErrorBarConverter::convertFromModel( const Reference< XDataSeries >& rxData
|
||||||
aBarProp.setProperty( PROP_ShowNegativeError, bShowNeg );
|
aBarProp.setProperty( PROP_ShowNegativeError, bShowNeg );
|
||||||
|
|
||||||
// type of displayed error
|
// type of displayed error
|
||||||
namespace cssc = ::com::sun::star::chart;
|
namespace cssc = css::chart;
|
||||||
switch( mrModel.mnValueType )
|
switch( mrModel.mnValueType )
|
||||||
{
|
{
|
||||||
case XML_cust:
|
case XML_cust:
|
||||||
|
|
|
@ -203,8 +203,8 @@ void LegendConverter::convertFromModel( const Reference< XDiagram >& rxDiagram )
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
namespace cssc = ::com::sun::star::chart;
|
namespace cssc = css::chart;
|
||||||
namespace cssc2 = ::com::sun::star::chart2;
|
namespace cssc2 = css::chart2;
|
||||||
|
|
||||||
// create the legend
|
// create the legend
|
||||||
Reference< XLegend > xLegend( createInstance( u"com.sun.star.chart2.Legend"_ustr ), UNO_QUERY_THROW );
|
Reference< XLegend > xLegend( createInstance( u"com.sun.star.chart2.Legend"_ustr ), UNO_QUERY_THROW );
|
||||||
|
|
|
@ -69,7 +69,7 @@ const char SERVICE_CHART2_BUBBLE[] = "com.sun.star.chart2.BubbleChartType";
|
||||||
const char SERVICE_CHART2_SURFACE[] = "com.sun.star.chart2.ColumnChartType"; // Todo
|
const char SERVICE_CHART2_SURFACE[] = "com.sun.star.chart2.ColumnChartType"; // Todo
|
||||||
const char SERVICE_CHART2_HISTO[] = "com.sun.star.chart2.HistogramChartType";
|
const char SERVICE_CHART2_HISTO[] = "com.sun.star.chart2.HistogramChartType";
|
||||||
|
|
||||||
namespace csscd = ::com::sun::star::chart::DataLabelPlacement;
|
namespace csscd = css::chart::DataLabelPlacement;
|
||||||
|
|
||||||
const TypeGroupInfo spTypeInfos[] =
|
const TypeGroupInfo spTypeInfos[] =
|
||||||
{
|
{
|
||||||
|
@ -491,7 +491,7 @@ void TypeGroupConverter::convertMarker( PropertySet& rPropSet, sal_Int32 nOoxSym
|
||||||
if( isSeriesFrameFormat() )
|
if( isSeriesFrameFormat() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
namespace cssc = ::com::sun::star::chart2;
|
namespace cssc = css::chart2;
|
||||||
|
|
||||||
// symbol style
|
// symbol style
|
||||||
cssc::Symbol aSymbol;
|
cssc::Symbol aSymbol;
|
||||||
|
@ -538,7 +538,7 @@ void TypeGroupConverter::convertLineSmooth( PropertySet& rPropSet, bool bOoxSmoo
|
||||||
{
|
{
|
||||||
if( !isSeriesFrameFormat() && (maTypeInfo.meTypeCategory != TYPECATEGORY_RADAR) )
|
if( !isSeriesFrameFormat() && (maTypeInfo.meTypeCategory != TYPECATEGORY_RADAR) )
|
||||||
{
|
{
|
||||||
namespace cssc = ::com::sun::star::chart2;
|
namespace cssc = css::chart2;
|
||||||
cssc::CurveStyle eCurveStyle = bOoxSmooth ? cssc::CurveStyle_CUBIC_SPLINES : cssc::CurveStyle_LINES;
|
cssc::CurveStyle eCurveStyle = bOoxSmooth ? cssc::CurveStyle_CUBIC_SPLINES : cssc::CurveStyle_LINES;
|
||||||
rPropSet.setProperty( PROP_CurveStyle, eCurveStyle );
|
rPropSet.setProperty( PROP_CurveStyle, eCurveStyle );
|
||||||
}
|
}
|
||||||
|
@ -549,7 +549,7 @@ void TypeGroupConverter::convertBarGeometry( PropertySet& rPropSet, sal_Int32 nO
|
||||||
if( !(mb3dChart && (maTypeInfo.meTypeCategory == TYPECATEGORY_BAR)) )
|
if( !(mb3dChart && (maTypeInfo.meTypeCategory == TYPECATEGORY_BAR)) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
namespace cssc = ::com::sun::star::chart2;
|
namespace cssc = css::chart2;
|
||||||
|
|
||||||
sal_Int32 nGeom3d = cssc::DataPointGeometry3D::CUBOID;
|
sal_Int32 nGeom3d = cssc::DataPointGeometry3D::CUBOID;
|
||||||
switch( nOoxShape )
|
switch( nOoxShape )
|
||||||
|
@ -615,7 +615,7 @@ void TypeGroupConverter::insertDataSeries( const Reference< XChartType >& rxChar
|
||||||
PropertySet aSeriesProp( rxSeries );
|
PropertySet aSeriesProp( rxSeries );
|
||||||
|
|
||||||
// series stacking mode
|
// series stacking mode
|
||||||
namespace cssc = ::com::sun::star::chart2;
|
namespace cssc = css::chart2;
|
||||||
cssc::StackingDirection eStacking = cssc::StackingDirection_NO_STACKING;
|
cssc::StackingDirection eStacking = cssc::StackingDirection_NO_STACKING;
|
||||||
// stacked overrides deep-3d
|
// stacked overrides deep-3d
|
||||||
if( isStacked() || isPercent() )
|
if( isStacked() || isPercent() )
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace {
|
||||||
double lclGetGraphicAspectRatio( const Reference< XGraphic >& rxGraphic )
|
double lclGetGraphicAspectRatio( const Reference< XGraphic >& rxGraphic )
|
||||||
{
|
{
|
||||||
double fRatio = 1.0;
|
double fRatio = 1.0;
|
||||||
Reference< com::sun::star::beans::XPropertySet > xGraphicPropertySet( rxGraphic, UNO_QUERY_THROW );
|
Reference< css::beans::XPropertySet > xGraphicPropertySet( rxGraphic, UNO_QUERY_THROW );
|
||||||
css::awt::Size aSizeHmm( 0, 0 );
|
css::awt::Size aSizeHmm( 0, 0 );
|
||||||
xGraphicPropertySet->getPropertyValue( u"Size100thMM"_ustr ) >>= aSizeHmm;
|
xGraphicPropertySet->getPropertyValue( u"Size100thMM"_ustr ) >>= aSizeHmm;
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ void PresentationFragmentHandler::importCustomSlideShow(std::vector<CustomShow>&
|
||||||
|
|
||||||
for (size_t i = 0; i < rCustomShowList.size(); ++i)
|
for (size_t i = 0; i < rCustomShowList.size(); ++i)
|
||||||
{
|
{
|
||||||
Reference<com::sun::star::container::XIndexContainer> xShow(mxShowFactory->createInstance(),
|
Reference<css::container::XIndexContainer> xShow(mxShowFactory->createInstance(),
|
||||||
UNO_QUERY);
|
UNO_QUERY);
|
||||||
if (xShow.is())
|
if (xShow.is())
|
||||||
{
|
{
|
||||||
|
|
|
@ -367,7 +367,7 @@ XclExpStringRef lclCreateFormattedString(
|
||||||
|
|
||||||
// script type handling
|
// script type handling
|
||||||
Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator();
|
Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator();
|
||||||
namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
|
namespace ApiScriptType = css::i18n::ScriptType;
|
||||||
// #i63255# get script type for leading weak characters
|
// #i63255# get script type for leading weak characters
|
||||||
sal_Int16 nLastScript = XclExpStringHelper::GetLeadingScriptType( rRoot, rText );
|
sal_Int16 nLastScript = XclExpStringHelper::GetLeadingScriptType( rRoot, rText );
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ XclExpStringRef lclCreateFormattedString(
|
||||||
|
|
||||||
// script type handling
|
// script type handling
|
||||||
Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator();
|
Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator();
|
||||||
namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
|
namespace ApiScriptType = css::i18n::ScriptType;
|
||||||
// #i63255# get script type for leading weak characters
|
// #i63255# get script type for leading weak characters
|
||||||
sal_Int16 nLastScript = XclExpStringHelper::GetLeadingScriptType( rRoot, rEE.GetText() );
|
sal_Int16 nLastScript = XclExpStringHelper::GetLeadingScriptType( rRoot, rEE.GetText() );
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ XclExpStringRef XclExpStringHelper::CreateString(
|
||||||
|
|
||||||
sal_Int16 XclExpStringHelper::GetLeadingScriptType( const XclExpRoot& rRoot, const OUString& rString )
|
sal_Int16 XclExpStringHelper::GetLeadingScriptType( const XclExpRoot& rRoot, const OUString& rString )
|
||||||
{
|
{
|
||||||
namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
|
namespace ApiScriptType = css::i18n::ScriptType;
|
||||||
Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator();
|
Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator();
|
||||||
sal_Int32 nStrPos = 0;
|
sal_Int32 nStrPos = 0;
|
||||||
sal_Int32 nStrLen = rString.getLength();
|
sal_Int32 nStrLen = rString.getLength();
|
||||||
|
|
|
@ -836,7 +836,7 @@ sal_Int16 lclCheckFontItems( const SfxItemSet& rItemSet,
|
||||||
|
|
||||||
sal_Int16 XclExpFontHelper::GetFirstUsedScript( const XclExpRoot& rRoot, const SfxItemSet& rItemSet )
|
sal_Int16 XclExpFontHelper::GetFirstUsedScript( const XclExpRoot& rRoot, const SfxItemSet& rItemSet )
|
||||||
{
|
{
|
||||||
namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
|
namespace ApiScriptType = css::i18n::ScriptType;
|
||||||
|
|
||||||
/* #i17050# #i107170# We need to determine which font items are set in the
|
/* #i17050# #i107170# We need to determine which font items are set in the
|
||||||
item set, and which script type we should prefer according to the
|
item set, and which script type we should prefer according to the
|
||||||
|
|
|
@ -1539,7 +1539,7 @@ void XclImpTextObj::DoPreProcessSdrObj( XclImpDffConverter& rDffConv, SdrObject&
|
||||||
SdrTextVertAdjust eVerAlign = SDRTEXTVERTADJUST_TOP;
|
SdrTextVertAdjust eVerAlign = SDRTEXTVERTADJUST_TOP;
|
||||||
|
|
||||||
// orientation (this is only a fake, drawing does not support real text orientation)
|
// orientation (this is only a fake, drawing does not support real text orientation)
|
||||||
namespace csst = ::com::sun::star::text;
|
namespace csst = css::text;
|
||||||
csst::WritingMode eWriteMode = csst::WritingMode_LR_TB;
|
csst::WritingMode eWriteMode = csst::WritingMode_LR_TB;
|
||||||
switch( maTextData.maData.mnOrient )
|
switch( maTextData.maData.mnOrient )
|
||||||
{
|
{
|
||||||
|
@ -2183,7 +2183,7 @@ void XclImpButtonObj::DoProcessControl( ScfPropertySet& rPropSet ) const
|
||||||
rPropSet.SetProperty( u"Align"_ustr, nHorAlign );
|
rPropSet.SetProperty( u"Align"_ustr, nHorAlign );
|
||||||
|
|
||||||
// vertical text alignment
|
// vertical text alignment
|
||||||
namespace csss = ::com::sun::star::style;
|
namespace csss = css::style;
|
||||||
csss::VerticalAlignment eVerAlign = csss::VerticalAlignment_MIDDLE;
|
csss::VerticalAlignment eVerAlign = csss::VerticalAlignment_MIDDLE;
|
||||||
switch( maTextData.maData.GetVerAlign() )
|
switch( maTextData.maData.GetVerAlign() )
|
||||||
{
|
{
|
||||||
|
@ -2201,7 +2201,7 @@ void XclImpButtonObj::DoProcessControl( ScfPropertySet& rPropSet ) const
|
||||||
rPropSet.SetBoolProperty( u"DefaultButton"_ustr, bDefButton );
|
rPropSet.SetBoolProperty( u"DefaultButton"_ustr, bDefButton );
|
||||||
|
|
||||||
// button type (flags cannot be combined in OOo)
|
// button type (flags cannot be combined in OOo)
|
||||||
namespace cssa = ::com::sun::star::awt;
|
namespace cssa = css::awt;
|
||||||
cssa::PushButtonType eButtonType = cssa::PushButtonType_STANDARD;
|
cssa::PushButtonType eButtonType = cssa::PushButtonType_STANDARD;
|
||||||
if( ::get_flag( maTextData.maData.mnButtonFlags, EXC_OBJ_BUTTON_CLOSE ) )
|
if( ::get_flag( maTextData.maData.mnButtonFlags, EXC_OBJ_BUTTON_CLOSE ) )
|
||||||
eButtonType = cssa::PushButtonType_OK;
|
eButtonType = cssa::PushButtonType_OK;
|
||||||
|
@ -2286,7 +2286,7 @@ void XclImpCheckBoxObj::DoProcessControl( ScfPropertySet& rPropSet ) const
|
||||||
rPropSet.SetProperty( u"DefaultState"_ustr, nApiState );
|
rPropSet.SetProperty( u"DefaultState"_ustr, nApiState );
|
||||||
|
|
||||||
// box style
|
// box style
|
||||||
namespace AwtVisualEffect = ::com::sun::star::awt::VisualEffect;
|
namespace AwtVisualEffect = css::awt::VisualEffect;
|
||||||
sal_Int16 nEffect = ::get_flagvalue( mnCheckBoxFlags, EXC_OBJ_CHECKBOX_FLAT, AwtVisualEffect::FLAT, AwtVisualEffect::LOOK3D );
|
sal_Int16 nEffect = ::get_flagvalue( mnCheckBoxFlags, EXC_OBJ_CHECKBOX_FLAT, AwtVisualEffect::FLAT, AwtVisualEffect::LOOK3D );
|
||||||
rPropSet.SetProperty( u"VisualEffect"_ustr, nEffect );
|
rPropSet.SetProperty( u"VisualEffect"_ustr, nEffect );
|
||||||
|
|
||||||
|
@ -2294,7 +2294,7 @@ void XclImpCheckBoxObj::DoProcessControl( ScfPropertySet& rPropSet ) const
|
||||||
rPropSet.SetBoolProperty( u"MultiLine"_ustr, false );
|
rPropSet.SetBoolProperty( u"MultiLine"_ustr, false );
|
||||||
|
|
||||||
// #i40279# always centered vertically
|
// #i40279# always centered vertically
|
||||||
namespace csss = ::com::sun::star::style;
|
namespace csss = css::style;
|
||||||
rPropSet.SetProperty( u"VerticalAlign"_ustr, csss::VerticalAlignment_MIDDLE );
|
rPropSet.SetProperty( u"VerticalAlign"_ustr, csss::VerticalAlignment_MIDDLE );
|
||||||
|
|
||||||
// background color
|
// background color
|
||||||
|
@ -2425,7 +2425,7 @@ void XclImpLabelObj::DoProcessControl( ScfPropertySet& rPropSet ) const
|
||||||
|
|
||||||
// text alignment (always top/left aligned)
|
// text alignment (always top/left aligned)
|
||||||
rPropSet.SetProperty( u"Align"_ustr, sal_Int16( 0 ) );
|
rPropSet.SetProperty( u"Align"_ustr, sal_Int16( 0 ) );
|
||||||
namespace csss = ::com::sun::star::style;
|
namespace csss = css::style;
|
||||||
rPropSet.SetProperty( u"VerticalAlign"_ustr, csss::VerticalAlignment_TOP );
|
rPropSet.SetProperty( u"VerticalAlign"_ustr, csss::VerticalAlignment_TOP );
|
||||||
|
|
||||||
// always wrap text automatically
|
// always wrap text automatically
|
||||||
|
@ -2696,7 +2696,7 @@ void XclImpScrollBarObj::DoProcessControl( ScfPropertySet& rPropSet ) const
|
||||||
rPropSet.SetProperty< sal_Int32 >( u"BlockIncrement"_ustr, mnPageStep );
|
rPropSet.SetProperty< sal_Int32 >( u"BlockIncrement"_ustr, mnPageStep );
|
||||||
rPropSet.SetProperty( u"VisibleSize"_ustr, ::std::min< sal_Int32 >( mnPageStep, 1 ) );
|
rPropSet.SetProperty( u"VisibleSize"_ustr, ::std::min< sal_Int32 >( mnPageStep, 1 ) );
|
||||||
|
|
||||||
namespace AwtScrollOrient = ::com::sun::star::awt::ScrollBarOrientation;
|
namespace AwtScrollOrient = css::awt::ScrollBarOrientation;
|
||||||
sal_Int32 nApiOrient = ::get_flagvalue( mnOrient, EXC_OBJ_SCROLLBAR_HOR, AwtScrollOrient::HORIZONTAL, AwtScrollOrient::VERTICAL );
|
sal_Int32 nApiOrient = ::get_flagvalue( mnOrient, EXC_OBJ_SCROLLBAR_HOR, AwtScrollOrient::HORIZONTAL, AwtScrollOrient::VERTICAL );
|
||||||
rPropSet.SetProperty( u"Orientation"_ustr, nApiOrient );
|
rPropSet.SetProperty( u"Orientation"_ustr, nApiOrient );
|
||||||
}
|
}
|
||||||
|
@ -2733,7 +2733,7 @@ void XclImpTbxObjListBase::ReadLbsData( XclImpStream& rStrm )
|
||||||
void XclImpTbxObjListBase::SetBoxFormatting( ScfPropertySet& rPropSet ) const
|
void XclImpTbxObjListBase::SetBoxFormatting( ScfPropertySet& rPropSet ) const
|
||||||
{
|
{
|
||||||
// border style
|
// border style
|
||||||
namespace AwtVisualEffect = ::com::sun::star::awt::VisualEffect;
|
namespace AwtVisualEffect = css::awt::VisualEffect;
|
||||||
sal_Int16 nApiBorder = ::get_flagvalue( mnListFlags, EXC_OBJ_LISTBOX_FLAT, AwtVisualEffect::FLAT, AwtVisualEffect::LOOK3D );
|
sal_Int16 nApiBorder = ::get_flagvalue( mnListFlags, EXC_OBJ_LISTBOX_FLAT, AwtVisualEffect::FLAT, AwtVisualEffect::LOOK3D );
|
||||||
rPropSet.SetProperty( u"Border"_ustr, nApiBorder );
|
rPropSet.SetProperty( u"Border"_ustr, nApiBorder );
|
||||||
|
|
||||||
|
@ -3547,7 +3547,7 @@ rtl::Reference<SdrObject> XclImpDffConverter::CreateSdrObject( const XclImpPictu
|
||||||
if( aGraphic.GetType() != GraphicType::NONE )
|
if( aGraphic.GetType() != GraphicType::NONE )
|
||||||
{
|
{
|
||||||
ErrCode nError = ERRCODE_NONE;
|
ErrCode nError = ERRCODE_NONE;
|
||||||
namespace cssea = ::com::sun::star::embed::Aspects;
|
namespace cssea = css::embed::Aspects;
|
||||||
sal_Int64 nAspects = rPicObj.IsSymbol() ? cssea::MSOLE_ICON : cssea::MSOLE_CONTENT;
|
sal_Int64 nAspects = rPicObj.IsSymbol() ? cssea::MSOLE_ICON : cssea::MSOLE_CONTENT;
|
||||||
xSdrObj =
|
xSdrObj =
|
||||||
CreateSdrOLEFromStorage(
|
CreateSdrOLEFromStorage(
|
||||||
|
|
|
@ -164,7 +164,7 @@ Color XclDefaultPalette::GetDefColor( sal_uInt16 nXclIndex ) const
|
||||||
|
|
||||||
// Font Data ==================================================================
|
// Font Data ==================================================================
|
||||||
|
|
||||||
namespace Awt = ::com::sun::star::awt;
|
namespace Awt = css::awt;
|
||||||
namespace AwtFontFamily = Awt::FontFamily;
|
namespace AwtFontFamily = Awt::FontFamily;
|
||||||
namespace AwtFontLineStyle = Awt::FontUnderline;
|
namespace AwtFontLineStyle = Awt::FontUnderline;
|
||||||
namespace AwtFontStrikeout = Awt::FontStrikeout;
|
namespace AwtFontStrikeout = Awt::FontStrikeout;
|
||||||
|
@ -747,7 +747,7 @@ void XclFontPropSetHelper::WriteFontProperties(
|
||||||
|
|
||||||
ScfPropSetHelper& XclFontPropSetHelper::GetChartHelper( sal_Int16 nScript )
|
ScfPropSetHelper& XclFontPropSetHelper::GetChartHelper( sal_Int16 nScript )
|
||||||
{
|
{
|
||||||
namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
|
namespace ApiScriptType = css::i18n::ScriptType;
|
||||||
switch( nScript )
|
switch( nScript )
|
||||||
{
|
{
|
||||||
case ApiScriptType::LATIN: return maHlpChWstrn;
|
case ApiScriptType::LATIN: return maHlpChWstrn;
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
using namespace css::uno;
|
using namespace css::uno;
|
||||||
using namespace sfx2::sidebar;
|
using namespace sfx2::sidebar;
|
||||||
|
|
||||||
namespace drawing = com::sun::star::drawing;
|
namespace drawing = css::drawing;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace calc
|
||||||
|
|
||||||
#define PROP_HANDLE_BOUND_CELL 1
|
#define PROP_HANDLE_BOUND_CELL 1
|
||||||
|
|
||||||
namespace lang = ::com::sun::star::lang;
|
namespace lang = css::lang;
|
||||||
using namespace ::com::sun::star::uno;
|
using namespace ::com::sun::star::uno;
|
||||||
using namespace ::com::sun::star::lang;
|
using namespace ::com::sun::star::lang;
|
||||||
using namespace ::com::sun::star::table;
|
using namespace ::com::sun::star::table;
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
namespace func_provider
|
namespace func_provider
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace uno = ::com::sun::star::uno;
|
namespace uno = css::uno;
|
||||||
namespace ucb = ::com::sun::star::ucb;
|
namespace ucb = css::ucb;
|
||||||
namespace lang = ::com::sun::star::lang;
|
namespace lang = css::lang;
|
||||||
namespace uri = ::com::sun::star::uri;
|
namespace uri = css::uri;
|
||||||
|
|
||||||
constexpr OUString SHARE = u"share"_ustr;
|
constexpr OUString SHARE = u"share"_ustr;
|
||||||
|
|
||||||
|
|
|
@ -1011,7 +1011,7 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest2, testTdf105739)
|
||||||
CPPUNIT_ASSERT_EQUAL(int(drawing::FillStyle_GRADIENT), static_cast<int>(aFillStyle));
|
CPPUNIT_ASSERT_EQUAL(int(drawing::FillStyle_GRADIENT), static_cast<int>(aFillStyle));
|
||||||
|
|
||||||
// Test gradient properties
|
// Test gradient properties
|
||||||
com::sun::star::awt::Gradient2 aFillGradient;
|
css::awt::Gradient2 aFillGradient;
|
||||||
aXBackgroundPropSet->getPropertyValue(u"FillGradient"_ustr) >>= aFillGradient;
|
aXBackgroundPropSet->getPropertyValue(u"FillGradient"_ustr) >>= aFillGradient;
|
||||||
|
|
||||||
// MCGR: Use the completely imported gradient to check for correctness
|
// MCGR: Use the completely imported gradient to check for correctness
|
||||||
|
|
|
@ -367,7 +367,7 @@ CPPUNIT_TEST_FIXTURE(SdImportTest, testTdf153466)
|
||||||
uno::Reference<beans::XPropertySet> xBackground(
|
uno::Reference<beans::XPropertySet> xBackground(
|
||||||
xPageSet->getPropertyValue(u"Background"_ustr).get<uno::Reference<beans::XPropertySet>>());
|
xPageSet->getPropertyValue(u"Background"_ustr).get<uno::Reference<beans::XPropertySet>>());
|
||||||
|
|
||||||
com::sun::star::drawing::RectanglePoint aRectanglePoint;
|
css::drawing::RectanglePoint aRectanglePoint;
|
||||||
xBackground->getPropertyValue(u"FillBitmapRectanglePoint"_ustr) >>= aRectanglePoint;
|
xBackground->getPropertyValue(u"FillBitmapRectanglePoint"_ustr) >>= aRectanglePoint;
|
||||||
CPPUNIT_ASSERT_EQUAL(drawing::RectanglePoint::RectanglePoint_RIGHT_BOTTOM, aRectanglePoint);
|
CPPUNIT_ASSERT_EQUAL(drawing::RectanglePoint::RectanglePoint_RIGHT_BOTTOM, aRectanglePoint);
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ private:
|
||||||
*/
|
*/
|
||||||
css::uno::Reference<css::drawing::framework::XResourceId> GetMainPaneId (
|
css::uno::Reference<css::drawing::framework::XResourceId> GetMainPaneId (
|
||||||
const css::uno::Reference<css::presentation::XPresentation2>& rxPresentation,
|
const css::uno::Reference<css::presentation::XPresentation2>& rxPresentation,
|
||||||
const css::uno::Reference<com::sun::star::uno::XComponentContext>& xContext) const;
|
const css::uno::Reference<css::uno::XComponentContext>& xContext) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,7 @@ Sequence< OUString > SAL_CALL DisplayModeController::getSupportedServiceNames(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface*
|
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||||
com_sun_star_comp_sd_DisplayModeController_get_implementation( css::uno::XComponentContext* context,
|
com_sun_star_comp_sd_DisplayModeController_get_implementation( css::uno::XComponentContext* context,
|
||||||
css::uno::Sequence<css::uno::Any> const &)
|
css::uno::Sequence<css::uno::Any> const &)
|
||||||
{
|
{
|
||||||
|
|
|
@ -99,7 +99,7 @@ private:
|
||||||
static bool setProperty1Value( sal_Int32 nType, const CustomAnimationEffectPtr& pEffect, const css::uno::Any& rValue );
|
static bool setProperty1Value( sal_Int32 nType, const CustomAnimationEffectPtr& pEffect, const css::uno::Any& rValue );
|
||||||
sal_Int32 fillAnimationLB( bool bHasText );
|
sal_Int32 fillAnimationLB( bool bHasText );
|
||||||
PathKind getCreatePathKind() const;
|
PathKind getCreatePathKind() const;
|
||||||
void createPath( PathKind eKind, std::vector< ::com::sun::star::uno::Any >& rTargets, double fDuration );
|
void createPath( PathKind eKind, std::vector< css::uno::Any >& rTargets, double fDuration );
|
||||||
|
|
||||||
DECL_LINK( implControlListBoxHdl, weld::ComboBox&, void );
|
DECL_LINK( implControlListBoxHdl, weld::ComboBox&, void );
|
||||||
DECL_LINK( implClickHdl, weld::Button&, void );
|
DECL_LINK( implClickHdl, weld::Button&, void );
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue