2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "nsSAXLocator.h"
|
|
|
|
|
2014-04-27 00:06:00 -07:00
|
|
|
NS_IMPL_ISUPPORTS(nsSAXLocator, nsISAXLocator)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsSAXLocator::nsSAXLocator(nsString& aPublicId,
|
|
|
|
nsString& aSystemId,
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t aLineNumber,
|
|
|
|
int32_t aColumnNumber) :
|
2007-03-22 10:30:00 -07:00
|
|
|
mPublicId(aPublicId),
|
|
|
|
mSystemId(aSystemId),
|
|
|
|
mLineNumber(aLineNumber),
|
|
|
|
mColumnNumber(aColumnNumber)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
nsSAXLocator::GetColumnNumber(int32_t *aColumnNumber)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
*aColumnNumber = mColumnNumber;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
nsSAXLocator::GetLineNumber(int32_t *aLineNumber)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
*aLineNumber = mLineNumber;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSAXLocator::GetPublicId(nsAString &aPublicId)
|
|
|
|
{
|
|
|
|
aPublicId = mPublicId;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSAXLocator::GetSystemId(nsAString &aSystemId)
|
|
|
|
{
|
|
|
|
aSystemId = mSystemId;
|
|
|
|
return NS_OK;
|
|
|
|
}
|