2010-10-12 15:51:52 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
re-base on ALv2 code. Includes (at least) relevant parts of:
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
re-base on ALv2 code. Includes (at least) relevant parts of:
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
re-base on ALv2 code. Includes (at least) relevant parts of:
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
|
|
|
* This file incorporates work covered by the following license notice:
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
re-base on ALv2 code. Includes (at least) relevant parts of:
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-01-20 11:54:27 +00:00
|
|
|
#include "View.hxx"
|
2001-04-04 15:41:39 +00:00
|
|
|
#include <unotools/localfilehelper.hxx>
|
2014-10-11 16:01:26 +02:00
|
|
|
#include <sfx2/bindings.hxx>
|
2001-03-08 10:28:38 +00:00
|
|
|
#include <sfx2/request.hxx>
|
|
|
|
#include <sfx2/docfilt.hxx>
|
|
|
|
#include <sfx2/fcontnr.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <sfx2/docfile.hxx>
|
2001-03-08 10:28:38 +00:00
|
|
|
#include <vcl/msgbox.hxx>
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/urlbmk.hxx>
|
2001-03-08 10:28:38 +00:00
|
|
|
#include <svx/svdpagv.hxx>
|
|
|
|
#include <svx/xfillit.hxx>
|
|
|
|
#include <svx/svdundo.hxx>
|
|
|
|
#include <svx/xoutbmp.hxx>
|
|
|
|
#include <svx/svdograf.hxx>
|
2004-08-12 08:20:10 +00:00
|
|
|
#include <svx/svdomedia.hxx>
|
2001-03-08 10:28:38 +00:00
|
|
|
#include <svx/svdoole2.hxx>
|
2004-10-04 17:47:31 +00:00
|
|
|
#include <sot/storage.hxx>
|
2001-03-08 10:28:38 +00:00
|
|
|
#include <sfx2/app.hxx>
|
2004-08-12 08:20:10 +00:00
|
|
|
#include <avmedia/mediawindow.hxx>
|
2014-04-02 11:34:03 +02:00
|
|
|
#include <avmedia/modeltools.hxx>
|
2006-01-20 08:20:04 +00:00
|
|
|
#include <svtools/ehdl.hxx>
|
|
|
|
#include <svtools/sfxecode.hxx>
|
2014-07-10 13:33:32 -04:00
|
|
|
#include <svtools/embedhlp.hxx>
|
2013-01-02 22:07:41 +01:00
|
|
|
#include <vcl/graphicfilter.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "app.hrc"
|
2004-01-20 11:54:27 +00:00
|
|
|
#include "Window.hxx"
|
|
|
|
#include "DrawDocShell.hxx"
|
|
|
|
#include "DrawViewShell.hxx"
|
2001-03-08 10:28:38 +00:00
|
|
|
#include "fuinsfil.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "drawdoc.hxx"
|
2001-03-08 10:28:38 +00:00
|
|
|
#include "sdresid.hxx"
|
|
|
|
#include "strings.hrc"
|
|
|
|
#include "imapinfo.hxx"
|
|
|
|
#include "sdpage.hxx"
|
2008-04-03 14:22:27 +00:00
|
|
|
#include "view/SlideSorterView.hxx"
|
2006-01-10 13:38:49 +00:00
|
|
|
#include "undo/undoobjects.hxx"
|
2004-10-04 17:47:31 +00:00
|
|
|
#include <comphelper/processfactory.hxx>
|
|
|
|
#include <com/sun/star/embed/ElementModes.hpp>
|
|
|
|
#include <com/sun/star/embed/XEmbedPersist.hpp>
|
|
|
|
#include <com/sun/star/embed/Aspects.hpp>
|
2005-03-15 10:22:27 +00:00
|
|
|
#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
|
2006-01-20 08:20:04 +00:00
|
|
|
#include <svtools/soerr.hxx>
|
2004-10-04 17:47:31 +00:00
|
|
|
#include <sfx2/ipclient.hxx>
|
2013-01-09 14:49:01 +00:00
|
|
|
#include <svx/svdoashp.hxx>
|
2012-05-31 13:23:45 +00:00
|
|
|
#include "glob.hrc"
|
2004-10-04 17:47:31 +00:00
|
|
|
|
2014-06-11 12:36:26 +02:00
|
|
|
#include <config_features.h>
|
|
|
|
|
2004-10-04 17:47:31 +00:00
|
|
|
using namespace com::sun::star;
|
|
|
|
|
2004-01-20 11:54:27 +00:00
|
|
|
namespace sd {
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-19 22:24:19 +01:00
|
|
|
/**
|
|
|
|
* If an empty graphic object is provided, we fill it. Otherwise we fill an
|
|
|
|
* existing object at the specified position. If there is no object at the
|
|
|
|
* position, we create a new object and return a pointer to it.
|
|
|
|
*/
|
2004-01-20 11:54:27 +00:00
|
|
|
SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction,
|
2001-03-08 10:28:38 +00:00
|
|
|
const Point& rPos, SdrObject* pObj, ImageMap* pImageMap )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2006-11-14 13:46:22 +00:00
|
|
|
SdrEndTextEdit();
|
2006-12-12 18:21:08 +00:00
|
|
|
mnAction = rAction;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-19 22:24:19 +01:00
|
|
|
// Is there a object at the position rPos?
|
2001-03-08 10:28:38 +00:00
|
|
|
SdrGrafObj* pNewGrafObj = NULL;
|
2006-11-14 13:46:22 +00:00
|
|
|
SdrPageView* pPV = GetSdrPageView();
|
2001-03-08 10:28:38 +00:00
|
|
|
SdrObject* pPickObj = pObj;
|
2010-12-08 14:39:25 +01:00
|
|
|
const bool bOnMaster = pPV && pPV->GetPage() && pPV->GetPage()->IsMasterPage();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2008-04-03 14:22:27 +00:00
|
|
|
if(pPV && this->ISA(::sd::slidesorter::view::SlideSorterView))
|
2006-11-14 13:46:22 +00:00
|
|
|
{
|
|
|
|
if(!pPV->GetPageRect().IsInside(rPos))
|
|
|
|
pPV = 0L;
|
|
|
|
}
|
2001-03-08 10:28:38 +00:00
|
|
|
|
|
|
|
if( !pPickObj && pPV )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2001-03-08 10:28:38 +00:00
|
|
|
SdrPageView* pPageView = pPV;
|
CWS-TOOLING: integrate CWS aw065
2009-06-17 13:48:12 +0200 aw r273068 : #99385# corrected small error in SCs selection visualisation
2009-06-16 15:45:28 +0200 wg r273021 : i102838
2009-06-16 12:46:07 +0200 wg r273016 : i102833
2009-06-11 17:40:29 +0200 aw r272895 : #i98870# added implementation for getPageCount helper
2009-06-11 16:39:54 +0200 aw r272885 : #i102663#, #i102667#, #i98870# incluide file typo corrected
2009-06-11 16:24:07 +0200 aw r272881 : #i102663#, #i102667#, #i98870# changes to SdrText, it's usage in SdrTextPrimitive2D and to OverlayObject base implementation. Also support for PageCountField added
2009-06-11 16:23:52 +0200 aw r272880 : #i102663#, #i102667#, #i98870# changes to SdrText, it's usage in SdrTextPrimitive2D and to OverlayObject base implementation. Also support for PageCountField added
2009-06-09 13:50:29 +0200 aw r272769 : #i98917# added support for the OverlayHatchRectanglePrimitive to follow rotation with it's hatch; simplified OverlayHatchRect
2009-06-09 13:04:06 +0200 aw r272766 : #i98870# re-added PageNumber identification in SdrTextPrimitive2D::get2DDecomposition
2009-06-08 18:56:05 +0200 aw r272744 : #i99385# added some last corrections to OverlayObjects in SD (had to do some merges on resync, needed to optically check and correct)
2009-06-08 11:17:57 +0200 aw r272725 : cws aw065: corrections after resync
2009-06-08 11:02:25 +0200 aw r272723 : cws aw065: corrections after resync
2009-06-08 10:36:22 +0200 aw r272722 : cws aw065: corrections after resync
2009-06-05 18:57:06 +0200 aw r272712 : CWS-TOOLING: rebase CWS aw065 to trunk@272291 (milestone: DEV300:m49)
2009-06-05 14:56:34 +0200 aw r272690 : #i89784# stripped old stuff no longer needed due to text-to-polygon conversion using primitives
2009-06-05 14:50:07 +0200 aw r272688 : #102091# removed on-model-lock suppression for SdrObject::ActionChanged()
2009-06-05 14:47:29 +0200 aw r272687 : #102091# corrected local value buffering in ScenePrimitive2D::get2DDecomposition
2009-06-03 17:53:32 +0200 aw r272599 : #i89784# version before stripping
2009-06-03 17:52:18 +0200 aw r272598 : #i89784# version before stripping
2009-05-28 17:15:47 +0200 aw r272420 : #i101872# old stuff removed/stripped
2009-05-28 17:15:32 +0200 aw r272419 : #i101872# old stuff removed/stripped
2009-05-28 17:15:15 +0200 aw r272418 : #i101872# old stuff removed/stripped
2009-05-28 17:14:45 +0200 aw r272417 : #i101872# old stuff removed/stripped
2009-05-28 12:13:56 +0200 aw r272396 : #i101872# stable hybrid state
2009-05-28 12:13:46 +0200 aw r272395 : #i101872# stable hybrid state
2009-05-28 12:13:35 +0200 aw r272394 : #i101872# stable hybrid state
2009-05-28 12:13:20 +0200 aw r272393 : #i101872# stable hybrid state
2009-05-28 12:13:05 +0200 aw r272392 : #i101872# stable hybrid state
2009-05-28 12:12:51 +0200 aw r272391 : #i101872# stable hybrid state
2009-05-15 16:56:02 +0200 aw r271952 : #i101872# HitTest unifications
2009-05-15 16:55:22 +0200 aw r271951 : #i101872# HitTest unifications
2009-05-15 16:55:12 +0200 aw r271950 : #i101872# HitTest unifications
2009-05-15 16:55:01 +0200 aw r271949 : #i101872# HitTest unifications
2009-05-15 16:54:51 +0200 aw r271948 : #i101872# HitTest unifications
2009-05-15 16:54:35 +0200 aw r271947 : #i101872# HitTest unifications
2009-05-15 16:54:22 +0200 aw r271946 : #i101872# HitTest unifications
2009-05-12 19:08:38 +0200 aw r271834 : #i101684# corrected AutoShape's preparation of text transformation due to different definitions in TextBounds
2009-05-12 15:44:49 +0200 aw r271827 : #i89784# expanded TextLayouterDevice::getTextOutlines() to support DXArray and X-Font scaling
2009-05-11 19:40:40 +0200 aw r271790 : #i99385# extended HitTest primitive usage, removed IsHdlHit implementations; prepared further HitTest simplifications
2009-05-11 19:40:25 +0200 aw r271789 : #i99385# extended HitTest primitive usage, removed IsHdlHit implementations; prepared further HitTest simplifications
2009-05-11 19:40:12 +0200 aw r271788 : #i99385# extended HitTest primitive usage, removed IsHdlHit implementations; prepared further HitTest simplifications
2009-05-11 13:01:53 +0200 aw r271765 : #i99385# corrections and optimizations
2009-05-08 14:48:40 +0200 aw r271718 : #i1016180# added optimizations in model operations when model is locked
2009-05-08 14:11:45 +0200 aw r271716 : #i101679# added flush() calls to OverlayManager when interaction step is prepared
2009-05-07 17:44:03 +0200 aw r271689 : #i99385# last corrections/changes
2009-05-07 17:43:47 +0200 aw r271688 : #i99385# last corrections/changes
2009-05-07 13:20:09 +0200 aw r271654 : #i99385# added changes from WFH
2009-05-07 13:19:38 +0200 aw r271653 : #i99385# added changes from WFH
2009-05-07 13:19:11 +0200 aw r271652 : #i99385# added changes from WFH
2009-05-07 11:33:17 +0200 aw r271643 : #i99385# corrections after resync
2009-05-07 11:17:31 +0200 aw r271642 : #i99385# corrections after resync
2009-05-06 18:46:53 +0200 aw r271609 : CWS-TOOLING: rebase CWS aw065 to trunk@271427 (milestone: DEV300:m47)
2009-05-05 18:24:03 +0200 aw r271548 : #i101443# force new text decomposition when TextBackgroundColor has changed
2009-05-05 17:44:42 +0200 aw r271542 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 17:44:32 +0200 aw r271541 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 17:44:20 +0200 aw r271540 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 17:44:09 +0200 aw r271539 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 15:48:38 +0200 aw r271527 : #i99385# 2nd round, usages checked and corrected
2009-05-05 15:48:15 +0200 aw r271526 : #i99385# 2nd round, usages checked and corrected
2009-05-05 15:48:03 +0200 aw r271525 : #i99385# 2nd round, usages checked and corrected
2009-05-05 15:47:51 +0200 aw r271524 : #i99385# 2nd round, usages checked and corrected
2009-04-27 18:33:10 +0200 aw r271300 : #i99385# state commit after all implementations are done
2009-04-27 15:36:53 +0200 aw r271283 : #i99385# state commit after all implementations are done
2009-04-27 15:27:49 +0200 aw r271280 : #i99385# state commit after all implementations are done
2009-04-27 15:27:33 +0200 aw r271279 : #i99385# state commit after all implementations are done
2009-04-27 15:27:00 +0200 aw r271278 : #i99385# state commit after all implementations are done
2009-04-27 15:26:15 +0200 aw r271277 : #i99385# state commit after all implementations are done
2009-04-27 15:25:40 +0200 aw r271275 : #i99385# state commit after all implementations are done
2009-04-27 15:25:19 +0200 aw r271274 : #i99385# state commit after all implementations are done
2009-04-27 15:24:00 +0200 aw r271272 : #i99385# state commit after all implementations are done
2009-03-19 17:12:00 +0100 aw r269757 : #i100360# corrected bitmap's PefSize calculation for bitmap filled objects when Bitmap is Pixel-based on it's mapping
2009-02-19 17:09:47 +0100 aw r268298 : #i98917# corrected attributes
2009-02-19 17:09:30 +0100 aw r268297 : #i98917# corrected attributes
2009-02-19 17:08:22 +0100 aw r268296 : #i98917# corrected attributes
2009-02-19 11:56:25 +0100 aw r268268 : #i98870# added extra code to react on PageNumber change
2009-02-18 16:57:24 +0100 aw r268243 : #i98917# in OverlayHatchRect::getGeometry the rotation was not applied to the TopLeft of the centered rectangle, but to the already extended one, thus the visualisation was rotating around the wrong edge
2009-07-02 14:28:15 +00:00
|
|
|
PickObj(rPos, getHitTolLog(), pPickObj, pPageView);
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-02-07 01:26:23 +00:00
|
|
|
const bool bIsGraphic(0 != dynamic_cast< SdrGrafObj* >(pPickObj));
|
|
|
|
|
2014-02-14 15:49:45 +00:00
|
|
|
if (DND_ACTION_LINK == mnAction
|
2014-02-07 01:26:23 +00:00
|
|
|
&& pPickObj
|
|
|
|
&& pPV
|
|
|
|
&& (bIsGraphic || (pPickObj->IsEmptyPresObj() && !bOnMaster))) // #121603# Do not use pObj, it may be NULL
|
|
|
|
{
|
|
|
|
// hit on SdrGrafObj with wanted new linked graphic (or PresObj placeholder hit)
|
|
|
|
if( IsUndoEnabled() )
|
|
|
|
BegUndo(OUString(SdResId(STR_INSERTGRAPHIC)));
|
|
|
|
|
2014-10-30 09:37:00 +02:00
|
|
|
SdPage* pPage = static_cast<SdPage*>( pPickObj->GetPage() );
|
2014-02-07 01:26:23 +00:00
|
|
|
|
|
|
|
if( bIsGraphic )
|
|
|
|
{
|
2014-02-14 15:49:45 +00:00
|
|
|
// We fill the object with the Bitmap
|
2014-10-30 09:37:00 +02:00
|
|
|
pNewGrafObj = static_cast<SdrGrafObj*>( pPickObj->Clone() );
|
2014-02-07 01:26:23 +00:00
|
|
|
pNewGrafObj->SetGraphic(rGraphic);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
pNewGrafObj = new SdrGrafObj( rGraphic, pPickObj->GetLogicRect() );
|
2014-02-07 14:18:41 +01:00
|
|
|
pNewGrafObj->SetEmptyPresObj(true);
|
2014-02-07 01:26:23 +00:00
|
|
|
}
|
2013-01-09 14:49:01 +00:00
|
|
|
|
2014-02-07 01:26:23 +00:00
|
|
|
if ( pNewGrafObj->IsEmptyPresObj() )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2014-02-07 01:26:23 +00:00
|
|
|
Rectangle aRect( pNewGrafObj->GetLogicRect() );
|
2014-02-07 14:18:41 +01:00
|
|
|
pNewGrafObj->AdjustToMaxRect( aRect, false );
|
2014-02-07 01:26:23 +00:00
|
|
|
pNewGrafObj->SetOutlinerParaObject(NULL);
|
2014-02-07 14:18:41 +01:00
|
|
|
pNewGrafObj->SetEmptyPresObj(false);
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
2014-02-07 01:26:23 +00:00
|
|
|
|
|
|
|
if (pPage && pPage->IsPresObj(pPickObj))
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
2014-02-14 15:49:45 +00:00
|
|
|
// Insert new PresObj into the list
|
2014-02-07 01:26:23 +00:00
|
|
|
pPage->InsertPresObj( pNewGrafObj, PRESOBJ_GRAPHIC );
|
|
|
|
pNewGrafObj->SetUserCall(pPickObj->GetUserCall());
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
2014-02-07 01:26:23 +00:00
|
|
|
|
|
|
|
if (pImageMap)
|
|
|
|
pNewGrafObj->AppendUserData(new SdIMapInfo(*pImageMap));
|
|
|
|
|
|
|
|
ReplaceObjectAtView(pPickObj, *pPV, pNewGrafObj); // maybe ReplaceObjectAtView
|
|
|
|
|
|
|
|
if( IsUndoEnabled() )
|
|
|
|
EndUndo();
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
2014-02-14 15:49:45 +00:00
|
|
|
else if (DND_ACTION_LINK == mnAction
|
|
|
|
&& pPickObj
|
|
|
|
&& !bIsGraphic
|
|
|
|
&& pPickObj->IsClosedObj()
|
|
|
|
&& !dynamic_cast< SdrOle2Obj* >(pPickObj))
|
|
|
|
{
|
|
|
|
// fill style change (fill object with graphic), independent of mnAction
|
|
|
|
// and thus of DND_ACTION_LINK or DND_ACTION_MOVE
|
|
|
|
if( IsUndoEnabled() )
|
|
|
|
{
|
|
|
|
BegUndo(OUString(SdResId(STR_UNDO_DRAGDROP)));
|
|
|
|
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*pPickObj));
|
|
|
|
EndUndo();
|
|
|
|
}
|
|
|
|
|
|
|
|
SfxItemSet aSet(mpDocSh->GetPool(), XATTR_FILLSTYLE, XATTR_FILLBITMAP);
|
|
|
|
|
2014-07-18 18:07:36 +02:00
|
|
|
aSet.Put(XFillStyleItem(drawing::FillStyle_BITMAP));
|
2014-02-14 15:49:45 +00:00
|
|
|
aSet.Put(XFillBitmapItem(&mpDocSh->GetPool(), rGraphic));
|
|
|
|
pPickObj->SetMergedItemSetAndBroadcast(aSet);
|
|
|
|
}
|
|
|
|
|
2001-03-08 10:28:38 +00:00
|
|
|
else if ( pPV )
|
|
|
|
{
|
|
|
|
// create new object
|
|
|
|
Size aSize;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2001-03-08 10:28:38 +00:00
|
|
|
if ( rGraphic.GetPrefMapMode().GetMapUnit() == MAP_PIXEL )
|
2006-01-20 08:20:04 +00:00
|
|
|
{
|
|
|
|
::OutputDevice* pOutDev = 0;
|
2006-12-12 18:21:08 +00:00
|
|
|
if( mpViewSh )
|
|
|
|
pOutDev = mpViewSh->GetActiveWindow();
|
2006-01-20 08:20:04 +00:00
|
|
|
|
|
|
|
if( !pOutDev )
|
|
|
|
pOutDev = Application::GetDefaultDevice();
|
|
|
|
|
|
|
|
if( pOutDev )
|
|
|
|
aSize = pOutDev->PixelToLogic( rGraphic.GetPrefSize(), MAP_100TH_MM );
|
|
|
|
}
|
2001-03-08 10:28:38 +00:00
|
|
|
else
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2001-03-08 10:28:38 +00:00
|
|
|
aSize = OutputDevice::LogicToLogic( rGraphic.GetPrefSize(),
|
|
|
|
rGraphic.GetPrefMapMode(),
|
|
|
|
MapMode( MAP_100TH_MM ) );
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2001-03-08 10:28:38 +00:00
|
|
|
pNewGrafObj = new SdrGrafObj( rGraphic, Rectangle( rPos, aSize ) );
|
|
|
|
SdrPage* pPage = pPV->GetPage();
|
|
|
|
Size aPageSize( pPage->GetSize() );
|
|
|
|
aPageSize.Width() -= pPage->GetLftBorder() + pPage->GetRgtBorder();
|
|
|
|
aPageSize.Height() -= pPage->GetUppBorder() + pPage->GetLwrBorder();
|
2014-01-28 20:00:21 +01:00
|
|
|
pNewGrafObj->AdjustToMaxRect( Rectangle( Point(), aPageSize ), true );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2015-04-23 15:00:26 +02:00
|
|
|
SdrInsertFlags nOptions = SdrInsertFlags::SETDEFLAYER;
|
2014-04-24 10:52:02 +02:00
|
|
|
bool bIsPresTarget = false;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
if ((mpViewSh
|
|
|
|
&& mpViewSh->GetViewShell()!=NULL
|
|
|
|
&& mpViewSh->GetViewShell()->GetIPClient()
|
|
|
|
&& mpViewSh->GetViewShell()->GetIPClient()->IsObjectInPlaceActive())
|
2008-04-03 14:22:27 +00:00
|
|
|
|| this->ISA(::sd::slidesorter::view::SlideSorterView))
|
2015-04-23 15:00:26 +02:00
|
|
|
nOptions |= SdrInsertFlags::DONTMARK;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
if( ( mnAction & DND_ACTION_MOVE ) && pPickObj && (pPickObj->IsEmptyPresObj() || pPickObj->GetUserCall()) )
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
SdPage* pP = static_cast< SdPage* >( pPickObj->GetPage() );
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
if ( pP && pP->IsMasterPage() )
|
|
|
|
bIsPresTarget = pP->IsPresObj(pPickObj);
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
if( ( mnAction & DND_ACTION_MOVE ) && pPickObj && !bIsPresTarget )
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
|
|
|
// replace object
|
|
|
|
if (pImageMap)
|
2012-02-01 10:38:57 -05:00
|
|
|
pNewGrafObj->AppendUserData(new SdIMapInfo(*pImageMap));
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2003-11-24 16:20:07 +00:00
|
|
|
Rectangle aPickObjRect(pPickObj->GetCurrentBoundRect());
|
2001-03-08 10:28:38 +00:00
|
|
|
Size aPickObjSize(aPickObjRect.GetSize());
|
2003-11-24 16:20:07 +00:00
|
|
|
Rectangle aObjRect(pNewGrafObj->GetCurrentBoundRect());
|
2001-03-08 10:28:38 +00:00
|
|
|
Size aObjSize(aObjRect.GetSize());
|
|
|
|
|
2014-10-23 17:41:47 +02:00
|
|
|
Fraction aScaleWidth(aPickObjSize.Width(), aObjSize.Width());
|
|
|
|
Fraction aScaleHeight(aPickObjSize.Height(), aObjSize.Height());
|
2001-03-08 10:28:38 +00:00
|
|
|
pNewGrafObj->NbcResize(aObjRect.TopLeft(), aScaleWidth, aScaleHeight);
|
|
|
|
|
|
|
|
Point aVec = aPickObjRect.TopLeft() - aObjRect.TopLeft();
|
|
|
|
pNewGrafObj->NbcMove(Size(aVec.X(), aVec.Y()));
|
|
|
|
|
2009-06-04 16:21:29 +00:00
|
|
|
const bool bUndo = IsUndoEnabled();
|
|
|
|
|
|
|
|
if( bUndo )
|
2013-08-11 21:13:38 +04:00
|
|
|
BegUndo(SD_RESSTR(STR_UNDO_DRAGDROP));
|
2001-03-08 10:28:38 +00:00
|
|
|
pNewGrafObj->NbcSetLayer(pPickObj->GetLayer());
|
2006-12-12 18:21:08 +00:00
|
|
|
SdrPage* pP = pPV->GetPage();
|
|
|
|
pP->InsertObject(pNewGrafObj);
|
2009-06-04 16:21:29 +00:00
|
|
|
if( bUndo )
|
|
|
|
{
|
2012-02-01 19:58:05 +04:00
|
|
|
AddUndo(mrDoc.GetSdrUndoFactory().CreateUndoNewObject(*pNewGrafObj));
|
|
|
|
AddUndo(mrDoc.GetSdrUndoFactory().CreateUndoDeleteObject(*pPickObj));
|
2009-06-04 16:21:29 +00:00
|
|
|
}
|
2006-12-12 18:21:08 +00:00
|
|
|
pP->RemoveObject(pPickObj->GetOrdNum());
|
2009-06-04 16:21:29 +00:00
|
|
|
|
|
|
|
if( bUndo )
|
|
|
|
{
|
|
|
|
EndUndo();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
SdrObject::Free(pPickObj);
|
|
|
|
}
|
2006-12-12 18:21:08 +00:00
|
|
|
mnAction = DND_ACTION_COPY;
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2006-11-14 13:46:22 +00:00
|
|
|
InsertObjectAtView(pNewGrafObj, *pPV, nOptions);
|
2001-03-08 10:28:38 +00:00
|
|
|
|
|
|
|
if( pImageMap )
|
2012-02-01 10:38:57 -05:00
|
|
|
pNewGrafObj->AppendUserData(new SdIMapInfo(*pImageMap));
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
rAction = mnAction;
|
2001-03-08 10:28:38 +00:00
|
|
|
|
|
|
|
return pNewGrafObj;
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
SdrMediaObj* View::InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction,
|
2011-12-02 23:54:33 +01:00
|
|
|
const Point& rPos, const Size& rSize,
|
|
|
|
bool const bLink )
|
2004-08-12 08:20:10 +00:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString realURL;
|
2011-12-02 23:54:33 +01:00
|
|
|
if (bLink)
|
|
|
|
{
|
|
|
|
realURL = rMediaURL;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2011-12-06 04:36:22 +01:00
|
|
|
uno::Reference<frame::XModel> const xModel(
|
2012-02-01 19:58:05 +04:00
|
|
|
GetDoc().GetObjectShell()->GetModel());
|
2011-12-02 23:54:33 +01:00
|
|
|
bool const bRet = ::avmedia::EmbedMedia(xModel, rMediaURL, realURL);
|
|
|
|
if (!bRet) { return 0; }
|
|
|
|
}
|
|
|
|
|
2014-04-04 13:14:45 +02:00
|
|
|
return InsertMediaObj( realURL, "application/vnd.sun.star.media", rAction, rPos, rSize );
|
2014-04-02 11:34:03 +02:00
|
|
|
}
|
|
|
|
|
2014-06-11 12:36:26 +02:00
|
|
|
#if HAVE_FEATURE_GLTF
|
2014-04-02 11:34:03 +02:00
|
|
|
SdrMediaObj* View::Insert3DModelURL(
|
|
|
|
const OUString& rModelURL, sal_Int8& rAction,
|
|
|
|
const Point& rPos, const Size& rSize,
|
|
|
|
bool const bLink )
|
|
|
|
{
|
|
|
|
OUString sRealURL;
|
|
|
|
if (bLink)
|
|
|
|
{
|
|
|
|
sRealURL = rModelURL;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
uno::Reference<frame::XModel> const xModel(
|
|
|
|
GetDoc().GetObjectShell()->GetModel());
|
|
|
|
bool const bRet = ::avmedia::Embed3DModel(xModel, rModelURL, sRealURL);
|
|
|
|
if (!bRet) { return 0; }
|
|
|
|
}
|
|
|
|
|
2014-06-11 12:37:15 +02:00
|
|
|
SdrMediaObj* pRetObject = InsertMediaObj( sRealURL, "model/vnd.gltf+json", rAction, rPos, rSize );
|
2014-05-19 18:39:02 +02:00
|
|
|
avmedia::MediaItem aItem = pRetObject->getMediaProperties();
|
|
|
|
aItem.setLoop(true);
|
|
|
|
pRetObject->setMediaProperties(aItem);
|
|
|
|
return pRetObject;
|
2014-04-02 11:34:03 +02:00
|
|
|
}
|
2014-06-11 12:36:26 +02:00
|
|
|
#endif
|
2014-04-02 11:34:03 +02:00
|
|
|
|
2014-04-04 13:14:45 +02:00
|
|
|
SdrMediaObj* View::InsertMediaObj( const OUString& rMediaURL, const OUString& rMimeType, sal_Int8& rAction,
|
2014-04-02 11:34:03 +02:00
|
|
|
const Point& rPos, const Size& rSize )
|
|
|
|
{
|
2006-11-14 13:46:22 +00:00
|
|
|
SdrEndTextEdit();
|
2006-12-12 18:21:08 +00:00
|
|
|
mnAction = rAction;
|
2004-08-12 08:20:10 +00:00
|
|
|
|
|
|
|
SdrMediaObj* pNewMediaObj = NULL;
|
2006-11-14 13:46:22 +00:00
|
|
|
SdrPageView* pPV = GetSdrPageView();
|
2010-02-23 00:23:09 +01:00
|
|
|
SdrObject* pPickObj = GetEmptyPresentationObject( PRESOBJ_MEDIA );
|
2004-08-12 08:20:10 +00:00
|
|
|
|
2008-04-03 14:22:27 +00:00
|
|
|
if(pPV && this->ISA(::sd::slidesorter::view::SlideSorterView ))
|
2006-11-14 13:46:22 +00:00
|
|
|
{
|
|
|
|
if(!pPV->GetPageRect().IsInside(rPos))
|
|
|
|
pPV = 0L;
|
|
|
|
}
|
2004-08-12 08:20:10 +00:00
|
|
|
|
|
|
|
if( !pPickObj && pPV )
|
|
|
|
{
|
|
|
|
SdrPageView* pPageView = pPV;
|
CWS-TOOLING: integrate CWS aw065
2009-06-17 13:48:12 +0200 aw r273068 : #99385# corrected small error in SCs selection visualisation
2009-06-16 15:45:28 +0200 wg r273021 : i102838
2009-06-16 12:46:07 +0200 wg r273016 : i102833
2009-06-11 17:40:29 +0200 aw r272895 : #i98870# added implementation for getPageCount helper
2009-06-11 16:39:54 +0200 aw r272885 : #i102663#, #i102667#, #i98870# incluide file typo corrected
2009-06-11 16:24:07 +0200 aw r272881 : #i102663#, #i102667#, #i98870# changes to SdrText, it's usage in SdrTextPrimitive2D and to OverlayObject base implementation. Also support for PageCountField added
2009-06-11 16:23:52 +0200 aw r272880 : #i102663#, #i102667#, #i98870# changes to SdrText, it's usage in SdrTextPrimitive2D and to OverlayObject base implementation. Also support for PageCountField added
2009-06-09 13:50:29 +0200 aw r272769 : #i98917# added support for the OverlayHatchRectanglePrimitive to follow rotation with it's hatch; simplified OverlayHatchRect
2009-06-09 13:04:06 +0200 aw r272766 : #i98870# re-added PageNumber identification in SdrTextPrimitive2D::get2DDecomposition
2009-06-08 18:56:05 +0200 aw r272744 : #i99385# added some last corrections to OverlayObjects in SD (had to do some merges on resync, needed to optically check and correct)
2009-06-08 11:17:57 +0200 aw r272725 : cws aw065: corrections after resync
2009-06-08 11:02:25 +0200 aw r272723 : cws aw065: corrections after resync
2009-06-08 10:36:22 +0200 aw r272722 : cws aw065: corrections after resync
2009-06-05 18:57:06 +0200 aw r272712 : CWS-TOOLING: rebase CWS aw065 to trunk@272291 (milestone: DEV300:m49)
2009-06-05 14:56:34 +0200 aw r272690 : #i89784# stripped old stuff no longer needed due to text-to-polygon conversion using primitives
2009-06-05 14:50:07 +0200 aw r272688 : #102091# removed on-model-lock suppression for SdrObject::ActionChanged()
2009-06-05 14:47:29 +0200 aw r272687 : #102091# corrected local value buffering in ScenePrimitive2D::get2DDecomposition
2009-06-03 17:53:32 +0200 aw r272599 : #i89784# version before stripping
2009-06-03 17:52:18 +0200 aw r272598 : #i89784# version before stripping
2009-05-28 17:15:47 +0200 aw r272420 : #i101872# old stuff removed/stripped
2009-05-28 17:15:32 +0200 aw r272419 : #i101872# old stuff removed/stripped
2009-05-28 17:15:15 +0200 aw r272418 : #i101872# old stuff removed/stripped
2009-05-28 17:14:45 +0200 aw r272417 : #i101872# old stuff removed/stripped
2009-05-28 12:13:56 +0200 aw r272396 : #i101872# stable hybrid state
2009-05-28 12:13:46 +0200 aw r272395 : #i101872# stable hybrid state
2009-05-28 12:13:35 +0200 aw r272394 : #i101872# stable hybrid state
2009-05-28 12:13:20 +0200 aw r272393 : #i101872# stable hybrid state
2009-05-28 12:13:05 +0200 aw r272392 : #i101872# stable hybrid state
2009-05-28 12:12:51 +0200 aw r272391 : #i101872# stable hybrid state
2009-05-15 16:56:02 +0200 aw r271952 : #i101872# HitTest unifications
2009-05-15 16:55:22 +0200 aw r271951 : #i101872# HitTest unifications
2009-05-15 16:55:12 +0200 aw r271950 : #i101872# HitTest unifications
2009-05-15 16:55:01 +0200 aw r271949 : #i101872# HitTest unifications
2009-05-15 16:54:51 +0200 aw r271948 : #i101872# HitTest unifications
2009-05-15 16:54:35 +0200 aw r271947 : #i101872# HitTest unifications
2009-05-15 16:54:22 +0200 aw r271946 : #i101872# HitTest unifications
2009-05-12 19:08:38 +0200 aw r271834 : #i101684# corrected AutoShape's preparation of text transformation due to different definitions in TextBounds
2009-05-12 15:44:49 +0200 aw r271827 : #i89784# expanded TextLayouterDevice::getTextOutlines() to support DXArray and X-Font scaling
2009-05-11 19:40:40 +0200 aw r271790 : #i99385# extended HitTest primitive usage, removed IsHdlHit implementations; prepared further HitTest simplifications
2009-05-11 19:40:25 +0200 aw r271789 : #i99385# extended HitTest primitive usage, removed IsHdlHit implementations; prepared further HitTest simplifications
2009-05-11 19:40:12 +0200 aw r271788 : #i99385# extended HitTest primitive usage, removed IsHdlHit implementations; prepared further HitTest simplifications
2009-05-11 13:01:53 +0200 aw r271765 : #i99385# corrections and optimizations
2009-05-08 14:48:40 +0200 aw r271718 : #i1016180# added optimizations in model operations when model is locked
2009-05-08 14:11:45 +0200 aw r271716 : #i101679# added flush() calls to OverlayManager when interaction step is prepared
2009-05-07 17:44:03 +0200 aw r271689 : #i99385# last corrections/changes
2009-05-07 17:43:47 +0200 aw r271688 : #i99385# last corrections/changes
2009-05-07 13:20:09 +0200 aw r271654 : #i99385# added changes from WFH
2009-05-07 13:19:38 +0200 aw r271653 : #i99385# added changes from WFH
2009-05-07 13:19:11 +0200 aw r271652 : #i99385# added changes from WFH
2009-05-07 11:33:17 +0200 aw r271643 : #i99385# corrections after resync
2009-05-07 11:17:31 +0200 aw r271642 : #i99385# corrections after resync
2009-05-06 18:46:53 +0200 aw r271609 : CWS-TOOLING: rebase CWS aw065 to trunk@271427 (milestone: DEV300:m47)
2009-05-05 18:24:03 +0200 aw r271548 : #i101443# force new text decomposition when TextBackgroundColor has changed
2009-05-05 17:44:42 +0200 aw r271542 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 17:44:32 +0200 aw r271541 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 17:44:20 +0200 aw r271540 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 17:44:09 +0200 aw r271539 : #i99385# 3rd round, simplifications and corrections done
2009-05-05 15:48:38 +0200 aw r271527 : #i99385# 2nd round, usages checked and corrected
2009-05-05 15:48:15 +0200 aw r271526 : #i99385# 2nd round, usages checked and corrected
2009-05-05 15:48:03 +0200 aw r271525 : #i99385# 2nd round, usages checked and corrected
2009-05-05 15:47:51 +0200 aw r271524 : #i99385# 2nd round, usages checked and corrected
2009-04-27 18:33:10 +0200 aw r271300 : #i99385# state commit after all implementations are done
2009-04-27 15:36:53 +0200 aw r271283 : #i99385# state commit after all implementations are done
2009-04-27 15:27:49 +0200 aw r271280 : #i99385# state commit after all implementations are done
2009-04-27 15:27:33 +0200 aw r271279 : #i99385# state commit after all implementations are done
2009-04-27 15:27:00 +0200 aw r271278 : #i99385# state commit after all implementations are done
2009-04-27 15:26:15 +0200 aw r271277 : #i99385# state commit after all implementations are done
2009-04-27 15:25:40 +0200 aw r271275 : #i99385# state commit after all implementations are done
2009-04-27 15:25:19 +0200 aw r271274 : #i99385# state commit after all implementations are done
2009-04-27 15:24:00 +0200 aw r271272 : #i99385# state commit after all implementations are done
2009-03-19 17:12:00 +0100 aw r269757 : #i100360# corrected bitmap's PefSize calculation for bitmap filled objects when Bitmap is Pixel-based on it's mapping
2009-02-19 17:09:47 +0100 aw r268298 : #i98917# corrected attributes
2009-02-19 17:09:30 +0100 aw r268297 : #i98917# corrected attributes
2009-02-19 17:08:22 +0100 aw r268296 : #i98917# corrected attributes
2009-02-19 11:56:25 +0100 aw r268268 : #i98870# added extra code to react on PageNumber change
2009-02-18 16:57:24 +0100 aw r268243 : #i98917# in OverlayHatchRect::getGeometry the rotation was not applied to the TopLeft of the centered rectangle, but to the already extended one, thus the visualisation was rotating around the wrong edge
2009-07-02 14:28:15 +00:00
|
|
|
PickObj(rPos, getHitTolLog(), pPickObj, pPageView);
|
2004-08-12 08:20:10 +00:00
|
|
|
}
|
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
if( mnAction == DND_ACTION_LINK && pPickObj && pPV && pPickObj->ISA( SdrMediaObj ) )
|
2004-08-12 08:20:10 +00:00
|
|
|
{
|
|
|
|
pNewMediaObj = static_cast< SdrMediaObj* >( pPickObj->Clone() );
|
2014-04-04 13:14:45 +02:00
|
|
|
pNewMediaObj->setURL( rMediaURL, ""/*TODO?*/, rMimeType );
|
2004-08-12 08:20:10 +00:00
|
|
|
|
2013-08-11 21:13:38 +04:00
|
|
|
BegUndo(SD_RESSTR(STR_UNDO_DRAGDROP));
|
2006-11-14 13:46:22 +00:00
|
|
|
ReplaceObjectAtView(pPickObj, *pPV, pNewMediaObj);
|
2004-08-12 08:20:10 +00:00
|
|
|
EndUndo();
|
|
|
|
}
|
|
|
|
else if( pPV )
|
|
|
|
{
|
2010-02-23 00:23:09 +01:00
|
|
|
Rectangle aRect( rPos, rSize );
|
|
|
|
if( pPickObj )
|
|
|
|
aRect = pPickObj->GetLogicRect();
|
|
|
|
|
|
|
|
pNewMediaObj = new SdrMediaObj( aRect );
|
|
|
|
|
2010-02-25 18:04:05 +01:00
|
|
|
bool bIsPres = false;
|
2010-02-23 00:23:09 +01:00
|
|
|
if( pPickObj )
|
|
|
|
{
|
|
|
|
SdPage* pPage = static_cast< SdPage* >(pPickObj->GetPage());
|
2010-02-25 18:04:05 +01:00
|
|
|
bIsPres = pPage && pPage->IsPresObj(pPickObj);
|
|
|
|
if( bIsPres )
|
2010-02-23 00:23:09 +01:00
|
|
|
{
|
|
|
|
pPage->InsertPresObj( pNewMediaObj, PRESOBJ_MEDIA );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if( pPickObj )
|
|
|
|
ReplaceObjectAtView(pPickObj, *pPV, pNewMediaObj);
|
|
|
|
else
|
2015-04-23 15:00:26 +02:00
|
|
|
InsertObjectAtView( pNewMediaObj, *pPV, SdrInsertFlags::SETDEFLAYER );
|
2010-02-23 00:23:09 +01:00
|
|
|
|
2013-11-20 14:43:45 +01:00
|
|
|
OUString referer;
|
|
|
|
DrawDocShell * sh = GetDocSh();
|
|
|
|
if (sh != 0 && sh->HasName()) {
|
|
|
|
referer = sh->GetMedium()->GetName();
|
|
|
|
}
|
2014-04-04 13:14:45 +02:00
|
|
|
pNewMediaObj->setURL( rMediaURL, referer, rMimeType );
|
2010-02-23 00:23:09 +01:00
|
|
|
|
|
|
|
if( pPickObj )
|
2010-02-25 18:04:05 +01:00
|
|
|
{
|
2010-02-23 00:23:09 +01:00
|
|
|
pNewMediaObj->AdjustToMaxRect( pPickObj->GetLogicRect() );
|
2010-02-25 18:04:05 +01:00
|
|
|
if( bIsPres )
|
|
|
|
pNewMediaObj->SetUserCall(pPickObj->GetUserCall());
|
|
|
|
}
|
2004-08-12 08:20:10 +00:00
|
|
|
}
|
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
rAction = mnAction;
|
2004-08-12 08:20:10 +00:00
|
|
|
|
|
|
|
return pNewMediaObj;
|
|
|
|
}
|
|
|
|
|
2013-03-19 22:24:19 +01:00
|
|
|
/**
|
|
|
|
* Timer handler for InsertFile at Drop()
|
|
|
|
*/
|
2015-05-05 09:59:27 +02:00
|
|
|
IMPL_LINK_NOARG_TYPED(View, DropInsertFileHdl, Idle *, void)
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
DBG_ASSERT( mpViewSh, "sd::View::DropInsertFileHdl(), I need a view shell to work!" );
|
|
|
|
if( !mpViewSh )
|
2015-05-05 09:59:27 +02:00
|
|
|
return;
|
2006-01-20 08:20:04 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
SfxErrorContext aEc( ERRCTX_ERROR, mpViewSh->GetActiveWindow(), RID_SO_ERRCTX );
|
2006-01-20 08:20:04 +00:00
|
|
|
ErrCode nError = 0;
|
|
|
|
|
2013-08-11 21:13:38 +04:00
|
|
|
::std::vector< OUString >::const_iterator aIter( maDropFileVector.begin() );
|
2001-04-04 15:41:39 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
while( (aIter != maDropFileVector.end()) && !nError )
|
2001-04-04 15:41:39 +00:00
|
|
|
{
|
2013-08-11 21:13:38 +04:00
|
|
|
OUString aCurrentDropFile( *aIter );
|
2002-03-14 11:29:52 +00:00
|
|
|
INetURLObject aURL( aCurrentDropFile );
|
2014-04-24 10:52:02 +02:00
|
|
|
bool bOK = false;
|
2001-04-04 15:41:39 +00:00
|
|
|
|
2015-04-02 18:32:36 +02:00
|
|
|
if( aURL.GetProtocol() == INetProtocol::NotValid )
|
2002-03-14 11:29:52 +00:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString aURLStr;
|
2002-03-14 11:29:52 +00:00
|
|
|
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aCurrentDropFile, aURLStr );
|
|
|
|
aURL = INetURLObject( aURLStr );
|
|
|
|
}
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2011-05-19 23:10:04 +01:00
|
|
|
GraphicFilter& rGraphicFilter = GraphicFilter::GetGraphicFilter();
|
2002-03-14 11:29:52 +00:00
|
|
|
Graphic aGraphic;
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2002-03-14 11:29:52 +00:00
|
|
|
aCurrentDropFile = aURL.GetMainURL( INetURLObject::NO_DECODE );
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2013-11-20 14:43:45 +01:00
|
|
|
if( !::avmedia::MediaWindow::isMediaURL( aCurrentDropFile, ""/*TODO?*/ ) )
|
2002-03-14 11:29:52 +00:00
|
|
|
{
|
2011-05-19 23:10:04 +01:00
|
|
|
if( !rGraphicFilter.ImportGraphic( aGraphic, aURL ) )
|
2002-11-15 12:52:32 +00:00
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
sal_Int8 nTempAction = ( aIter == maDropFileVector.begin() ) ? mnAction : 0;
|
re-base on ALv2 code. Includes (at least) relevant parts of:
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
|
|
|
const bool bLink = ( ( nTempAction & DND_ACTION_LINK ) != 0 );
|
|
|
|
SdrGrafObj* pGrafObj = InsertGraphic( aGraphic, nTempAction, maDropPos, NULL, NULL );
|
|
|
|
if(pGrafObj && bLink)
|
|
|
|
{
|
rhbz#887420 Implement "block untrusted referer links" feature
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks
configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and
SvxBrushItem::GetGraphicObject. Checking in additional places will probably be
necessary to block /all/ unwanted communication. Also, some places marked
/*TODO?*/ currently pass in an empty referer (which is always considered
trusted) and will probably need to be adapted.
Ideally, Referer URIs would never be empty (and consistently use something like
<private:user> for cases where access is explicitly initiated by the user and
should never be blocked), but that's a very daunting task, so start small by
identifying the places that potentially need blocking and adding appropriate
Referer URIs there. Also, Referer information should always be computed as
freshly as possible from the context in which an access attempt is made, but,
again, always carrying the information from the context all the way to the
relevant functions is a very daunting task, so for now store the information
upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...).
The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already
used to track macro execution, and there is one place in
SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked
by the user) is done that needs the current document's URI as Referer to check
execution of macro URIs but needs an empty (or <private:user>, see above)
Referer to not block non-macro URIs. Special code has been added there to
handle that.
Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9
2013-11-14 10:39:27 +01:00
|
|
|
pGrafObj->SetGraphicLink( aCurrentDropFile, ""/*TODO?*/, OUString() );
|
re-base on ALv2 code. Includes (at least) relevant parts of:
linecap: Reintegrating finished LineCap feature
Patch contributed by Regina Henschel
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patches contributed by Sven Jacobi
impress212: #i81610# fixed animation export
http://svn.apache.org/viewvc?view=revision&revision=1167620
impress212: drawinglayer gbuild environment changes
http://svn.apache.org/viewvc?view=revision&revision=1167627
http://svn.apache.org/viewvc?view=revision&revision=1167628
impress212: DffPropSet -> minor code improvements, removing table
http://svn.apache.org/viewvc?view=revision&revision=1167634
impress212: #158494# fixed excel import (text rotation)
http://svn.apache.org/viewvc?view=revision&revision=1167638
Patches contributed by Armin Le Grand
Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement
http://svn.apache.org/viewvc?view=revision&revision=1220836
#118728# changed indentifying definitions for Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1229961
#118838# LineGeometry creation for complicated cases optimized to
create single Polygons
http://svn.apache.org/viewvc?view=revision&revision=1236232
#119176# corrected file type detection for SVG for svg files
without xml header
http://svn.apache.org/viewvc?view=revision&revision=1309445
#118728# Extended Svg file detection
http://svn.apache.org/viewvc?view=revision&revision=1230531
#118529# solve break converters and convert commands for OLEs and images
http://svn.apache.org/viewvc?view=revision&revision=1186168
svg: added WaE changes from branch svgreplacement to trunc
http://svn.apache.org/viewvc?view=revision&revision=1222974
svg: corrected missing member initialization
http://svn.apache.org/viewvc?view=revision&revision=1226134
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert
metafiles to bitmapEx ...
http://svn.apache.org/viewvc?view=revision&revision=1293316
fix for #118525#: removed no longer used variable maOriginalMapMode, one
more exception eliminated
http://svn.apache.org/viewvc?view=revision&revision=1227097
#16758# Added buffering to the VDev usages of the VclProcessor2D derivates...
http://svn.apache.org/viewvc?view=revision&revision=1229521
#116758# Secured VDev buffer device to Vcl deinit
http://svn.apache.org/viewvc?view=revision&revision=1230574
#116758# added remembering allocated VDevs for VDevBuffer to be able to also
delete these when vcl goes down; it should never happen, but You never know
http://svn.apache.org/viewvc?view=revision&revision=1230927
#118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive
representation instead of TransparencePrimitive2D
http://svn.apache.org/viewvc?view=revision&revision=1231198
#118822# secured 3D geometry creation (slices) by subdividing the 2D
source polyPolygon early
http://svn.apache.org/viewvc?view=revision&revision=1234749
#118829# enhanced Svg gradient quality, obstacles avoided
http://svn.apache.org/viewvc?view=revision&revision=1235361
#118834# Unified usage of TextBreakupHelper as single tooling class
for i18n text primitive breakup
http://svn.apache.org/viewvc?view=revision&revision=1236110
#118853# added square pixel size limit to conversion of
TransparencePrimitive2D to Metafile action
http://svn.apache.org/viewvc?view=revision&revision=1237656
#118824# coreccted mirroring and boundrect when the graphicmanager
is used for bitmap output
http://svn.apache.org/viewvc?view=revision&revision=1240097
#115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for
various optimization scenarios
http://svn.apache.org/viewvc?view=revision&revision=1241434
#118783# Corrected errors in ID strings, corrected Svg line/fill export,
corrected polygon close state
http://svn.apache.org/viewvc?view=revision&revision=1232006
#118796# corrected null-pointer usage in SVG text exporter
http://svn.apache.org/viewvc?view=revision&revision=1240262
#118729# Use GraphicStreamUrl and GraphicUrl to allow multi image
import with linked graphics, too
http://svn.apache.org/viewvc?view=revision&revision=1229962
#118898# corrected error in GDIMetaFile::GetBoundRect in handling
MetaFloatTransparentAction
http://svn.apache.org/viewvc?view=revision&revision=1293349
#118855# Corrected handling of possibly created empty clipRegions
after PolyPolygon clipping
http://svn.apache.org/viewvc?view=revision&revision=1237725
#115962# Better (but not yet optimal, see comments in task) handling
of MetaFloatTransparentAction in PDF export
http://svn.apache.org/viewvc?view=revision&revision=1241078
IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ...
http://svn.apache.org/viewvc?view=revision&revision=1200879
118779# Added svg content streaming in/out to ImpGraphic stream operators
http://svn.apache.org/viewvc?view=revision&revision=1231908
linecap: correctons for WaE and mac drawing
http://svn.apache.org/viewvc?view=revision&revision=1232793
svg: uses current system Dpi for Svg replacement image creation
http://svn.apache.org/viewvc?view=revision&revision=1233948
Patches contributed by Mathias Bauer (and others)
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1394326
Remove duplicate header includes.
cws mba34issues01: #i117720#: convert assertion into warning
http://svn.apache.org/viewvc?view=revision&revision=1172352
118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand.
http://svn.apache.org/viewvc?view=revision&revision=1182166
cws mba34issues01: #i117714#: remove assertion
http://svn.apache.org/viewvc?view=revision&revision=1172357
Patch contributed by Jurgen Schmidt
add some additional checks to ensure proper reading operations
http://svn.apache.org/viewvc?view=revision&revision=1209022
mostly prefer our stream / bounds checking work.
Patches contributed by Herbert Duerr
#i118816# add clarifying comment regarding Font::*Color*() methods
http://svn.apache.org/viewvc?view=revision&revision=1233833
extend macro->string handling for empty strings
http://svn.apache.org/viewvc?view=revision&revision=1175801
avoid magic constants for SALCOLOR_NONE
http://svn.apache.org/viewvc?view=revision&revision=1177543
initialize slant properly in ImplFontMetricData constructor (author=iorsh)
http://svn.apache.org/viewvc?view=revision&revision=1177551
#i118675# make check for extension updates more stable
http://svn.apache.org/viewvc?view=revision&revision=1214797
#a118617# remove VBasicEventListener.dll binary
There are no known users depending on its CLSID
http://svn.apache.org/viewvc?view=revision&revision=1203697
Patches contributed by Ariel Constenla-Haile
Fix build breaker on Linux/gcc
http://svn.apache.org/viewvc?view=revision&revision=1221104
Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG
http://svn.apache.org/viewvc?view=revision&revision=1215559
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider
instances of <SwFlyDrawObj>
http://svn.apache.org/viewvc?view=revision&revision=1172120
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
gnumake4 work variously from Hans-Joachim Lankenau
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1396782
http://svn.apache.org/viewvc?view=revision&revision=1394707
plus some amount of re-splitting of legacy headers.
Patch contributed by Pavel Janik
WaE: Remove unused variables.
http://svn.apache.org/viewvc?view=revision&revision=1230697
Patches contributed by Takashi Ono
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
mingwport35: i#117795: MinGW port fix for vcl2gnumake
http://svn.apache.org/viewvc?view=revision&revision=1172091
Patch contributed by Christian Lippka
impress212: #i98044# re enable Text menu for outline and title shapes
http://svn.apache.org/viewvc?view=revision&revision=1167639
Patch contributed by Andre Fischer
118674: Made category B code optional and disabled by default.
http://svn.apache.org/viewvc?view=revision&revision=1215131
118881: Ignore empty paragraphs after bullets.
http://svn.apache.org/viewvc?view=revision&revision=1296205
Patches contributed by Philipp Lohmann
ooo340fixes: #i117780# use rtl allocator
http://svn.apache.org/viewvc?view=revision&revision=1172087
ooo34gsl02: #i117807# fix an off by one error (index actually
inside the pfb section header)
http://svn.apache.org/viewvc?view=revision&revision=1167576
various cleanups, related compilation fixes, warning cleanups, re-working
of obsolete stl template pieces to use boost instead, changed string
classes, re-adapt KDE about data, about dialog, fixing warnings,
and other fixes & improvements.
Disable svg import / render for about/ branding code-paths for now.
Restore full icon theme set.
Remove OS/2 conditionals and sources.
Remove conflicting gtk/full-screen monitors support.
Retain existing svg rasterizer files - temporarily disabled.
Standardize stringificaiton and fixup dllpostfix issues.
Rename SvgGradientHelper::== to equalTo to avoid overloading issues.
Use the flat GdiPlus API for LineCaps calls.
2012-10-09 12:22:23 +01:00
|
|
|
}
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2002-11-15 12:52:32 +00:00
|
|
|
// return action from first inserted graphic
|
2006-12-12 18:21:08 +00:00
|
|
|
if( aIter == maDropFileVector.begin() )
|
|
|
|
mnAction = nTempAction;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-04-24 10:52:02 +02:00
|
|
|
bOK = true;
|
2002-11-15 12:52:32 +00:00
|
|
|
}
|
|
|
|
if( !bOK )
|
2001-10-23 14:49:48 +00:00
|
|
|
{
|
2002-11-15 12:52:32 +00:00
|
|
|
const SfxFilter* pFoundFilter = NULL;
|
2015-01-07 09:28:42 +02:00
|
|
|
SfxMedium aSfxMedium( aCurrentDropFile, StreamMode::READ | StreamMode::SHARE_DENYNONE );
|
2015-03-18 13:03:28 +02:00
|
|
|
ErrCode nErr = SfxGetpApp()->GetFilterMatcher().GuessFilter( aSfxMedium, &pFoundFilter, SfxFilterFlags::IMPORT, SFX_FILTER_NOTINSTALLED | SfxFilterFlags::EXECUTABLE );
|
2002-11-15 12:52:32 +00:00
|
|
|
|
|
|
|
if( pFoundFilter && !nErr )
|
2002-03-14 11:29:52 +00:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
::std::vector< OUString > aFilterVector;
|
2013-08-11 21:13:38 +04:00
|
|
|
OUString aFilterName = pFoundFilter->GetFilterName();
|
|
|
|
OUString aLowerAsciiFileName = aCurrentDropFile.toAsciiLowerCase();
|
2002-11-15 12:52:32 +00:00
|
|
|
|
|
|
|
FuInsertFile::GetSupportedFilterVector( aFilterVector );
|
|
|
|
|
|
|
|
if( ( ::std::find( aFilterVector.begin(), aFilterVector.end(), pFoundFilter->GetMimeType() ) != aFilterVector.end() ) ||
|
2013-08-11 21:13:38 +04:00
|
|
|
aFilterName.indexOf( "Text" ) != -1 ||
|
|
|
|
aFilterName.indexOf( "Rich" ) != -1 ||
|
|
|
|
aFilterName.indexOf( "RTF" ) != -1 ||
|
|
|
|
aFilterName.indexOf( "HTML" ) != -1 ||
|
|
|
|
aLowerAsciiFileName.indexOf(".sdd") != -1 ||
|
|
|
|
aLowerAsciiFileName.indexOf(".sda") != -1 ||
|
|
|
|
aLowerAsciiFileName.indexOf(".sxd") != -1 ||
|
|
|
|
aLowerAsciiFileName.indexOf(".sxi") != -1 ||
|
|
|
|
aLowerAsciiFileName.indexOf(".std") != -1 ||
|
|
|
|
aLowerAsciiFileName.indexOf(".sti") != -1 )
|
2002-11-15 12:52:32 +00:00
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
::sd::Window* pWin = mpViewSh->GetActiveWindow();
|
2014-10-11 16:01:26 +02:00
|
|
|
SfxRequest aReq(SID_INSERTFILE, ::SfxCallMode::SLOT, mrDoc.GetItemPool());
|
2002-11-15 12:52:32 +00:00
|
|
|
SfxStringItem aItem1( ID_VAL_DUMMY0, aCurrentDropFile ), aItem2( ID_VAL_DUMMY1, pFoundFilter->GetFilterName() );
|
|
|
|
|
|
|
|
aReq.AppendItem( aItem1 );
|
|
|
|
aReq.AppendItem( aItem2 );
|
2012-02-01 19:58:05 +04:00
|
|
|
FuInsertFile::Create( mpViewSh, pWin, this, &mrDoc, aReq );
|
2014-04-24 10:52:02 +02:00
|
|
|
bOK = true;
|
2002-11-15 12:52:32 +00:00
|
|
|
}
|
2002-03-14 11:29:52 +00:00
|
|
|
}
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-03-14 11:29:52 +00:00
|
|
|
if( !bOK )
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
2004-08-12 08:20:10 +00:00
|
|
|
Size aPrefSize;
|
|
|
|
|
2013-11-20 14:43:45 +01:00
|
|
|
if( ::avmedia::MediaWindow::isMediaURL( aCurrentDropFile, ""/*TODO?*/ ) &&
|
|
|
|
::avmedia::MediaWindow::isMediaURL( aCurrentDropFile, ""/*TODO?*/, true, &aPrefSize ) )
|
2004-08-12 08:20:10 +00:00
|
|
|
{
|
|
|
|
if( aPrefSize.Width() && aPrefSize.Height() )
|
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
::sd::Window* pWin = mpViewSh->GetActiveWindow();
|
2004-08-12 08:20:10 +00:00
|
|
|
|
|
|
|
if( pWin )
|
|
|
|
aPrefSize = pWin->PixelToLogic( aPrefSize, MAP_100TH_MM );
|
|
|
|
else
|
|
|
|
aPrefSize = Application::GetDefaultDevice()->PixelToLogic( aPrefSize, MAP_100TH_MM );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
aPrefSize = Size( 5000, 5000 );
|
|
|
|
|
2011-12-02 23:54:33 +01:00
|
|
|
InsertMediaURL( aCurrentDropFile, mnAction, maDropPos, aPrefSize, true ) ;
|
2004-08-12 08:20:10 +00:00
|
|
|
}
|
2006-12-12 18:21:08 +00:00
|
|
|
else if( mnAction & DND_ACTION_LINK )
|
2013-08-11 21:13:38 +04:00
|
|
|
static_cast< DrawViewShell* >( mpViewSh )->InsertURLButton( aCurrentDropFile, aCurrentDropFile, OUString(), &maDropPos );
|
2002-03-14 11:29:52 +00:00
|
|
|
else
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
if( mpViewSh )
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
2006-01-20 08:20:04 +00:00
|
|
|
try
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2006-01-20 08:20:04 +00:00
|
|
|
//TODO/MBA: testing
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString aName;
|
2006-01-20 08:20:04 +00:00
|
|
|
uno::Sequence < beans::PropertyValue > aMedium(1);
|
2012-04-07 09:02:24 -03:00
|
|
|
aMedium[0].Name = "URL" ;
|
2013-08-11 21:13:38 +04:00
|
|
|
aMedium[0].Value <<= aCurrentDropFile ;
|
2005-03-15 10:22:27 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
uno::Reference < embed::XEmbeddedObject > xObj = mpDocSh->GetEmbeddedObjectContainer().
|
2006-01-20 08:20:04 +00:00
|
|
|
InsertEmbeddedObject( aMedium, aName );
|
2001-03-08 10:28:38 +00:00
|
|
|
|
2006-01-20 08:20:04 +00:00
|
|
|
uno::Reference < embed::XEmbedPersist > xPersist( xObj, uno::UNO_QUERY );
|
|
|
|
if ( xPersist.is())
|
2002-03-14 11:29:52 +00:00
|
|
|
{
|
2006-01-20 08:20:04 +00:00
|
|
|
// TODO/LEAN: VisualArea access can switch the object to running state
|
|
|
|
sal_Int64 nAspect = embed::Aspects::MSOLE_CONTENT;
|
|
|
|
|
|
|
|
xPersist->storeOwn();
|
|
|
|
|
|
|
|
awt::Size aSz;
|
|
|
|
try
|
|
|
|
{
|
|
|
|
aSz = xObj->getVisualAreaSize( nAspect );
|
|
|
|
}
|
|
|
|
catch( embed::NoVisualAreaSizeException& )
|
|
|
|
{
|
|
|
|
// the default size will be set later
|
|
|
|
}
|
|
|
|
|
|
|
|
Size aSize( aSz.Width, aSz.Height );
|
|
|
|
Rectangle aRect;
|
|
|
|
|
|
|
|
if (!aSize.Width() || !aSize.Height())
|
|
|
|
{
|
|
|
|
aSize.Width() = 1410;
|
|
|
|
aSize.Height() = 1000;
|
|
|
|
}
|
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
aRect = Rectangle( maDropPos, aSize );
|
2006-01-20 08:20:04 +00:00
|
|
|
|
|
|
|
SdrOle2Obj* pOleObj = new SdrOle2Obj( svt::EmbeddedObjectRef( xObj, nAspect ), aName, aRect );
|
2015-04-23 15:00:26 +02:00
|
|
|
SdrInsertFlags nOptions = SdrInsertFlags::SETDEFLAYER;
|
2006-01-20 08:20:04 +00:00
|
|
|
|
2006-12-12 18:21:08 +00:00
|
|
|
if (mpViewSh != NULL)
|
2006-01-20 08:20:04 +00:00
|
|
|
{
|
2006-12-12 18:21:08 +00:00
|
|
|
OSL_ASSERT (mpViewSh->GetViewShell()!=NULL);
|
2006-01-20 08:20:04 +00:00
|
|
|
SfxInPlaceClient* pIpClient =
|
2006-12-12 18:21:08 +00:00
|
|
|
mpViewSh->GetViewShell()->GetIPClient();
|
2006-01-20 08:20:04 +00:00
|
|
|
if (pIpClient!=NULL && pIpClient->IsObjectInPlaceActive())
|
2015-04-23 15:00:26 +02:00
|
|
|
nOptions |= SdrInsertFlags::DONTMARK;
|
2006-01-20 08:20:04 +00:00
|
|
|
}
|
|
|
|
|
2006-11-14 13:46:22 +00:00
|
|
|
InsertObjectAtView( pOleObj, *GetSdrPageView(), nOptions );
|
2006-01-20 08:20:04 +00:00
|
|
|
pOleObj->SetLogicRect( aRect );
|
|
|
|
aSz.Width = aRect.GetWidth();
|
|
|
|
aSz.Height = aRect.GetHeight();
|
|
|
|
xObj->setVisualAreaSize( nAspect,aSz );
|
2002-03-14 11:29:52 +00:00
|
|
|
}
|
2006-01-20 08:20:04 +00:00
|
|
|
}
|
|
|
|
catch( uno::Exception& )
|
|
|
|
{
|
|
|
|
nError = ERRCODE_IO_GENERAL;
|
|
|
|
// TODO/LATER: better error handling
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2002-03-14 11:29:52 +00:00
|
|
|
|
|
|
|
++aIter;
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2006-01-20 08:20:04 +00:00
|
|
|
if( nError )
|
|
|
|
ErrorHandler::HandleError( nError );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
2013-03-19 22:24:19 +01:00
|
|
|
/**
|
|
|
|
* Timer handler for Errorhandling at Drop()
|
|
|
|
*/
|
2015-05-05 09:59:27 +02:00
|
|
|
IMPL_LINK_NOARG_TYPED(View, DropErrorHdl, Idle *, void)
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2015-05-28 21:35:43 +01:00
|
|
|
ScopedVclPtr<InfoBox>::Create( mpViewSh ? mpViewSh->GetActiveWindow() : 0, SD_RESSTR(STR_ACTION_NOTPOSSIBLE) )->Execute();
|
2001-03-08 10:28:38 +00:00
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-03-19 22:24:19 +01:00
|
|
|
/**
|
|
|
|
* @returns StyleSheet from selection
|
|
|
|
*/
|
2004-01-20 11:54:27 +00:00
|
|
|
SfxStyleSheet* View::GetStyleSheet() const
|
2001-03-08 10:28:38 +00:00
|
|
|
{
|
|
|
|
return SdrView::GetStyleSheet();
|
|
|
|
}
|
2004-01-20 11:54:27 +00:00
|
|
|
|
|
|
|
} // end of namespace sd
|
2010-10-12 15:51:52 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|