<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\..\FrameXML\UI.xsd">
<Frame name="ElephantCopyFrameTemplate" toplevel="true" enableMouse="true" hidden="true" virtual="true">
	<Size x="500" y="500"/>
	<Scripts>
		<OnLoad>
			self:SetPoint("TOP", Elephant.defaultConf.copyposition.x, Elephant.defaultConf.copyposition.y)
			getglobal(self:GetName().."TitleFontString"):SetText(Elephant.L['copywindow'])
		</OnLoad>
		<OnEnter>
			getglobal(self:GetName().."ScrollFrame"):UpdateScrollChildRect()
		</OnEnter>
	</Scripts>
	<Layers>
    <Layer layer="BACKGROUND">
      <Texture file="Interface\DialogFrame\UI-DialogBox-Background" alpha="0.75">
        <Size x="64" y="64"/>
      </Texture>
    </Layer>
    <Layer layer="BORDER">
      <Texture file="Interface\AddOns\Elephant\roth-TL" alpha="0.5">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="TOPLEFT" x="-8" y="8"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-T" alpha="0.5" horizTile="true">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="TOPLEFT" x="0" y="8"/>
          <Anchor point="TOPRIGHT" x="0" y="8"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-TR">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="TOPRIGHT" x="8" y="8"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-L" alpha="0.5" vertTile="true">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="TOPLEFT" x="-8" y="0"/>
          <Anchor point="BOTTOMLEFT" x="-8" y="0"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-R" alpha="0.5" vertTile="true">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="TOPRIGHT" x="8" y="0"/>
          <Anchor point="BOTTOMRIGHT" x="8" y="0"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-BL" alpha="0.5">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="BOTTOMLEFT" x="-8" y="-8"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-B" alpha="0.5" horizTile="true">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="BOTTOMLEFT" x="0" y="-8"/>
          <Anchor point="BOTTOMRIGHT" x="0" y="-8"/>
        </Anchors>
      </Texture>
      <Texture file="Interface\AddOns\Elephant\roth-BR" alpha="0.5">
        <Size x="8" y="8"/>
        <Anchors>
          <Anchor point="BOTTOMRIGHT" x="8" y="-8"/>
        </Anchors>
      </Texture>
    </Layer>
		<Layer level="ARTWORK">
			<Texture file="Interface\DialogFrame\UI-DialogBox-Header">
				<Size>
					<AbsDimension x="256" y="64" />
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="12" />
						</Offset>
					</Anchor>
				</Anchors>
			</Texture>
			<FontString name="$parentTitleFontString" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-2" />
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
	<Frames>
    <Frame name="$parentTitleInfoFrame" setAllPoints="true">
      <Layers>
        <Layer>
          <FontString name="$parentLogLengthFontString" inherits="GameFontNormal">
            <Anchors>
              <Anchor point="TOPRIGHT">
                <Offset x="-38" y="-12"/>
              </Anchor>
            </Anchors>
            <Color b="1.0" r="1.0" g="1.0"/>
          </FontString>
          <FontString name="$parentCopyLogDisplayed" inherits="GameFontNormal">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset x="28" y="-12"/>
              </Anchor>
            </Anchors>
            <Color b="1.0" r="1.0" g="1.0"/>
          </FontString>
        </Layer>
      </Layers>
    </Frame>
		<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
			<Size x="424" y="423" />
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="33" y="-32"/>
					</Offset>
				</Anchor>
			</Anchors>
      <Layers>
        <Layer layer="BACKGROUND">
          <Texture file="Interface\DialogFrame\UI-DialogBox-Background" alpha="0.7">
            <Size x="64" y="64"/>
          </Texture>
        </Layer>
      </Layers>
			<ScrollChild>
				<EditBox name="$parentEditBox" letters="50000" multiLine="true" autoFocus="false">
					<Size>
						<AbsDimension x="420" y="425"/>
					</Size>
					<Scripts>
						<OnEnter>
							self:GetParent():UpdateScrollChildRect()
							self:SetFocus()
						</OnEnter>
						<OnLeave>
							self:ClearFocus()
						</OnLeave>
					</Scripts>
					<FontString inherits="ChatFontNormal" />
				</EditBox>
			</ScrollChild>
		</ScrollFrame>
		<Frame name="$parentScrollTextureFrame">
			<Size x="435" y="435" />
			<Anchors>
				<Anchor point="TOP">
					<Offset>
						<AbsDimension x="-5" y="-26"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Layers>
        <Layer layer="BACKGROUND">
          <Texture file="Interface\DialogFrame\UI-DialogBox-Background" alpha="0.5"/>
        </Layer>
        <Layer layer="BORDER">
          <Texture file="Interface\Tooltips\UI-Tooltip-TL" alpha="0.5">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="TOPLEFT" x="-2" y="2"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-T" alpha="0.5" horizTile="true">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="TOPLEFT" x="6" y="2"/>
              <Anchor point="TOPRIGHT" x="-6" y="2"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-TR" alpha="0.5">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="TOPRIGHT" x="2" y="2"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-L" alpha="0.5" vertTile="true">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="TOPLEFT" x="-2" y="-6"/>
              <Anchor point="BOTTOMLEFT" x="-2" y="6"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-R" alpha="0.5" vertTile="true">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="TOPRIGHT" x="2" y="-6"/>
              <Anchor point="BOTTOMRIGHT" x="2" y="6"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-BL" alpha="0.5">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="BOTTOMLEFT" x="-2" y="-2"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-B" alpha="0.5" horizTile="true">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="BOTTOMLEFT" x="6" y="-2"/>
              <Anchor point="BOTTOMRIGHT" x="-6" y="-2"/>
            </Anchors>
          </Texture>
          <Texture file="Interface\Tooltips\UI-Tooltip-BR" alpha="0.5">
            <Size x="8" y="8"/>
            <Anchors>
              <Anchor point="BOTTOMRIGHT" x="2" y="-2"/>
            </Anchors>
          </Texture>
        </Layer>
      </Layers>
		</Frame>
		<Button name="$parentBBCodeButton" inherits="OptionsButtonTemplate">
			<Anchors>
				<Anchor point="BOTTOM">
					<Offset>
						<AbsDimension x="-50" y="15"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					self:SetText(Elephant.L['bbAndText'])
				</OnLoad>
        <OnEnter>
          Elephant:SetTooltip(self, {
            Elephant.L['bbAndText'],
            Elephant.L['bbAndTextInfo'][1],
            " ",
            {
              text = format(Elephant.L['bbAndTextInfo'][2], Elephant.defaultConf.copywindowmaxlinesbb),
              r = 1.0,
              g = 0.2,
              b = 0.2
            }
          }, "ANCHOR_TOPLEFT")
        </OnEnter>
        <OnLeave>
          Elephant:UnsetTooltip()
        </OnLeave>
				<OnClick>
					Elephant:ToggleBetweenNormalTextAndBBCode()
				</OnClick>
			</Scripts>
			<ButtonText font="GameFontNormal">
				<Color b="1.0" r="1.0" g="1.0"/>
			</ButtonText>
		</Button>
    <Button name="$parentBackButton" inherits="OptionsButtonTemplate">
      <Anchors>
        <Anchor point="BOTTOMLEFT">
          <Offset>
            <AbsDimension x="15" y="15"/>
          </Offset>
        </Anchor>
      </Anchors>
      <Scripts>
        <OnLoad>
          self:SetText(BACK)
        </OnLoad>
        <OnClick>
          ElephantFrame:Show()
          self:GetParent():Hide()
        </OnClick>
      </Scripts>
      <ButtonText font="GameFontNormal" outline="NORMAL"/>
    </Button>
		<Button name="$parentHideButton" inherits="OptionsButtonTemplate">
			<Anchors>
				<Anchor point="BOTTOMRIGHT">
					<Offset>
						<AbsDimension x="-15" y="15"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					self:SetText(CLOSE)
				</OnLoad>
				<OnClick>
					self:GetParent():Hide()
				</OnClick>
			</Scripts>
			<ButtonText font="GameFontNormal" outline="NORMAL"/>
		</Button>
		<CheckButton name="$parentUseTimestampsButton" inherits="UICheckButtonTemplate">
			<Anchors>
				<Anchor point="BOTTOM">
					<Offset>
						<AbsDimension x="20" y="9"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(self:GetName().."Text"):SetText(Elephant.L['showtimestamps'])
					Elephant:UpdateButtonWithUseTimestampsInCopyWindow(self)
				</OnLoad>
				<OnClick>
					if self:GetChecked() then
						Elephant:ToggleUseTimestampsInCopyWindow(true)
					else
						Elephant:ToggleUseTimestampsInCopyWindow(false)
					end
					Elephant:UpdateButtonWithUseTimestampsInCopyWindow(self)
				</OnClick>
			</Scripts>
		</CheckButton>
	</Frames>
</Frame>
</Ui>
